<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        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;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
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]-->
</head>
<body lang="EN-NZ" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hello JooYoung et al.,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The MakeBatch() command does one of two things. If you do not put in  a filename, it creates a set of files in the current working directory, one of which is RmdBatch.bat<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The purpose of RmdBatch.bat is to allow the user the chance to use the dos prompt to issue the command<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">    RmdBatch.bat test.Rmd<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">In which case the file test.Rmd is compiled using rmarkdown::render()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The original intention was to allow users to move the RmdBatch.bat file to somewhere on the path and have the above line issued from any folder without needing to create the batch files again and again. Experiments
 to date do not convince me that this works in every instance.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">If however the user chooses a filename for MakeBatch(), then the batch file created is tailored to the file specified and either runs rmarkdown::render() for Rmd files, or the standard command line for batch
 processing R script files. In this case, you would want the batch file to sit alongside the Rmd or R file it is linked to.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I definitely had RmdBatch.bat working when I first added it to the BrailleR package. I accept that it might not now be working as well, but I’m not convinced anyone wants the originally intended dos prompt way
 of working anyway.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Your desire to process all Rmd files in a folder is a different problem and would need something different added to the MakeBatch() command. I think it is easily achieved so I’ll add it to the to-do list on GitHub.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jonathan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> BlindRUG [mailto:blindrug-bounces@nfbnet.org]
<b>On Behalf Of </b>JooYoung Seo via BlindRUG<br>
<b>Sent:</b> Tuesday, 13 June 2017 1:40 p.m.<br>
<b>To:</b> 'Blind R Users Group'<br>
<b>Cc:</b> JooYoung Seo<br>
<b>Subject:</b> [BlindRUG] Is there any way that we could make RmdBatch file work?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  Dear Dr. Godfrey,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  I hope this email finds you well.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  I wish I could meet in person in Florida, but I am so sorry I won’t be able to make it because of my project here at Penn State during summer.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  I hope I can see you next time.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  I am writing this to ask you if there would be any way we could make RmdBatch file work in anywhere like the RBatch file.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  As you know, currently it seems really tricky transfer backslash escape character that is given from %1 argument in batch file into slash.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  I have tried to several things I could do, but all results were not satisfactory.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  Alternatively, I am using my batch file for rmarkdown file like the below:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">##Batch file begins<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">C:\PROGRA~1\R\R-34~1.0\bin\RScript.exe -e "rmarkdown::render(grep('*.Rmd', list.files(), value=T))"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">##Batch file ends<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">However, it works when there is only one .Rmd file in the current working directory.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  As you see here, it is just provisional solution.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  Do you know how we could make it work for any executed R markdown file?<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  Your help would be greatly appreciated.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  Sincerely,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US">  JooYoung<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:4.5pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">       JooYoung Seo<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">--------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  Doctoral Student,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  Learning, Design, and Technology<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  Learning and Performance Systems<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  The Pennsylvania State University<o:p></o:p></span></p>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="1" cellpadding="0" style="border:none;border-top:solid #D3D4DE 1.0pt">
<tbody>
<tr>
<td width="55" style="width:41.25pt;border:none;padding:9.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="46" height="29" id="_x0000_i1025" src="cid:image001.jpg@01D2E48F.0FC4FCF0" alt="Image removed by sender."></span></a><o:p></o:p></span></p>
</td>
<td width="470" style="width:352.5pt;border:none;padding:9.0pt .75pt .75pt .75pt">
<p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#41424E">Virus-free.
<a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link" target="_blank">
<span style="color:#4453EA">www.avast.com</span></a> <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>