<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 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:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 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:0in;
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;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle19
{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:8.5in 11.0in;
margin:85.05pt 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]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'> This is really great Dr. Godfrey!<o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'> Actually, my original intent was to make a batch file that you already created for Rmd files work in any where.<o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'> As you know, when a Windows system path containing backslash is rendered in R, it returns an error. And that was the main issue that we cannot employ RmdBatch file in any other working directories.<o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'> I have attempted to fix your batch file several times to work everywhere, <o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'>But unfortunately, any method I could recruit led to failure.<o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'> I even saved a path that %1 passes to a separate temporary text file, and changed any backslashes into slashes.<o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'> And then, render the text file in r Script, but it did not work, either.<o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'> Should we just give up the RmdBatch file?<o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'> Please advise me.<o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'> Thank you so much.<o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'> JooYoung<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D'> JooYoung Seo<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'> Doctoral Student,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> Learning, Design, and Technology<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> Learning and Performance Systems<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> The Pennsylvania State University<o:p></o:p></span></p></div><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 #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> BlindRUG [mailto:blindrug-bounces@nfbnet.org] <b>On Behalf Of </b>Godfrey, Jonathan via BlindRUG<br><b>Sent:</b> Wednesday, June 14, 2017 12:05 AM<br><b>To:</b> Blind R Users Group <blindrug@nfbnet.org><br><b>Cc:</b> Godfrey, Jonathan <A.J.Godfrey@massey.ac.nz><br><b>Subject:</b> Re: [BlindRUG] Is there any way that we could make RmdBatch file work?<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>Hello all,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>Further to my previous message on this topic, I decided it wouldn’t be that hard to add a function to the BrailleR package to process all R markdown files within a folder. So I did it this morning while waiting for someone to arrive.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>The function is called ProcessAllRmd() and is now in the development version of BrailleR on GitHub. The command is for use inside an R session but isn’t limited to running in an interactive session. This does mean that I can create a batch file to do the same job that will be issued outside R as per JooYoung’s initial request.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>Re-install the package using:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'> devtools::install_github(“ajrgodfrey/BrailleR”)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>and test it please.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>Feedback welcome of course.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>Jonathan<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif'>From:</span></b><span 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><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'> Dear Dr. Godfrey,<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'> I hope this email finds you well.<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'> 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></p><p class=MsoNormal style='text-indent:4.5pt'> I hope I can see you next time.<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'> 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></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'> 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></p><p class=MsoNormal style='text-indent:4.5pt'> I have tried to several things I could do, but all results were not satisfactory.<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'> Alternatively, I am using my batch file for rmarkdown file like the below:<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'>##Batch file begins<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'>C:\PROGRA~1\R\R-34~1.0\bin\RScript.exe -e "rmarkdown::render(grep('*.Rmd', list.files(), value=T))"<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'>##Batch file ends<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'>However, it works when there is only one .Rmd file in the current working directory.<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'> As you see here, it is just provisional solution.<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'> Do you know how we could make it work for any executed R markdown file?<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'> Your help would be greatly appreciated.<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'> Sincerely,<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal style='text-indent:4.5pt'> JooYoung<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> JooYoung Seo<o:p></o:p></p><p class=MsoNormal>--------------------<o:p></o:p></p><p class=MsoNormal> Doctoral Student,<o:p></o:p></p><p class=MsoNormal> Learning, Design, and Technology<o:p></o:p></p><p class=MsoNormal> Learning and Performance Systems<o:p></o:p></p><p class=MsoNormal> The Pennsylvania State University<o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><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"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">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" style="color: #4453ea;">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body></html>