<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Dear Syed , <br>
      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. <br>
      <br>
      "C:\Program Files\R\R-3.2.3\bin\x64\Rterm.exe" --no-save < in.R
      > out.txt <br>
      <br>
      Mind the quotes and the > sign in the above line, both are
      essential components. <br>
      Hope this helps,<br>
      Tim <br>
      On 3/16/2016 7:31 PM, Syed Rizvi via BlindRUG wrote:<br>
    </div>
    <blockquote cite="mid:001001d17fb2$1a1cdb20$4e569160$@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:8.0pt;
        margin-left:0in;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello All, <o:p></o:p></p>
        <p class="MsoNormal">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. <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">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. <o:p></o:p></p>
        <p class="MsoNormal">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. <o:p></o:p></p>
        <p class="MsoNormal">If anyone can guide me in this, I would be
          extremely appreciative. <o:p></o:p></p>
        <p class="MsoNormal">Thank you, <o:p></o:p></p>
        <p class="MsoNormal">Syed Rizvi <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
BlindRUG mailing list
<a class="moz-txt-link-abbreviated" href="mailto:BlindRUG@nfbnet.org">BlindRUG@nfbnet.org</a>
<a class="moz-txt-link-freetext" href="http://nfbnet.org/mailman/listinfo/blindrug_nfbnet.org">http://nfbnet.org/mailman/listinfo/blindrug_nfbnet.org</a>
To unsubscribe, change your list options or get your account info for BlindRUG:
<a class="moz-txt-link-freetext" href="http://nfbnet.org/mailman/options/blindrug_nfbnet.org/tim%40dvlop.nl">http://nfbnet.org/mailman/options/blindrug_nfbnet.org/tim%40dvlop.nl</a>
The list archive can be viewed at:
<a class="moz-txt-link-freetext" href="http://www.nfbnet.org/pipermail/blindrug_nfbnet.org">http://www.nfbnet.org/pipermail/blindrug_nfbnet.org</a>
More information and useful links about using R as a blind person can be obtained at:
<a class="moz-txt-link-freetext" href="http://R-Resources.massey.ac.nz">http://R-Resources.massey.ac.nz</a>

Look for help using R commands by reading the accessible e-book "Let's Use R Now" compiled by Jonathan Godfrey at:
<a class="moz-txt-link-freetext" href="http://R-Resources.massey.ac.nz/lurn/front.html">http://R-Resources.massey.ac.nz/lurn/front.html</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>