[BlindRUG] Input output via batch file question

Tim in 't Veld tim at dvlop.nl
Wed Mar 16 18:43:39 UTC 2016


Dear Syed ,
Below is the batch file (a single line) I use to save the output of a 
script "in.r" to file "out.txt". Make sure to adapt the path for the R 
executable and ensure to run this batch file from the same directory 
where your "in.r" is located.

"C:\Program Files\R\R-3.2.3\bin\x64\Rterm.exe" --no-save < in.R > out.txt

Mind the quotes and the > sign in the above line, both are essential 
components.
Hope this helps,
Tim
On 3/16/2016 7:31 PM, Syed Rizvi via BlindRUG wrote:
>
> Hello All,
>
> I am a student at the Louisiana Center for the Blind and am trying to 
> learn how to use R for my career in business information systems.
>
> I am trying to construct a batch file that will take my R script input 
> file, run it, and save the output in a text file.
>
> I have tried using all the other resources but I can’t find syntax 
> specific to what I am trying to do. As of right now in my batch file I 
> have the path statement at the top to define my environment variable. 
> Now what I am trying to do is pass my input to RTerm and save the output.
>
> If anyone can guide me in this, I would be extremely appreciative.
>
> Thank you,
>
> Syed Rizvi
>
>
>
> _______________________________________________
> BlindRUG mailing list
> BlindRUG at nfbnet.org
> http://nfbnet.org/mailman/listinfo/blindrug_nfbnet.org
> To unsubscribe, change your list options or get your account info for BlindRUG:
> http://nfbnet.org/mailman/options/blindrug_nfbnet.org/tim%40dvlop.nl
> The list archive can be viewed at:
> http://www.nfbnet.org/pipermail/blindrug_nfbnet.org
> More information and useful links about using R as a blind person can be obtained at:
> http://R-Resources.massey.ac.nz
>
> Look for help using R commands by reading the accessible e-book "Let's Use R Now" compiled by Jonathan Godfrey at:
> http://R-Resources.massey.ac.nz/lurn/front.html

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nfbnet.org/pipermail/blindrug_nfbnet.org/attachments/20160316/e0aba548/attachment.html>


More information about the BlindRUG mailing list