<div dir="ltr">Hello, i'm new to RInside and Rcpp. I trying to run a small test to output a a pdf using a series of calls to the RInside library. Whenever I call ggsave (or pdf) via these calls i get the following error message:<div><i><br></i></div><div><div><i>Error in pdf(file = "C:/path/to/file/file.pdf", height = 3.5,  :</i></div><div><i>  failed to initialise default PDF font</i></div><div><i>In addition: Warning messages:</i></div><div><i>1: In pdf(file = "</i><i>C:/path/to/file/file.pdf</i><i>", height = 3.5,  :</i></div><div><i>  afm file '?,x`/library/grDevices/afm/Helvetica.afm' could not be opened</i></div><div><i>2: In pdf(file = "</i><i>C:/path/to/file/file.pdf</i><i>", height = 3.5,  :</i></div><div><i>  cannot load afm file 'Helvetica.afm'</i></div><div><i>terminate called after throwing an instance of 'std::runtime_error'</i></div><div><i>  what():  Error evaluating: pdf(file="</i><i>C:/path/to/file/file.pdf</i><i>, height=3.5, width=5, encoding="C:/R/R-3.2.4/library/grDevices/enc/WinAnsi")</i></div></div><div><i><br></i></div><div><i><br></i></div><div>I have R 3.2.4 installed on a Windows Server 2008 R2 box. as you can see the base directory used to search for the font isn't C:\R\R-3.2.4\.... as it should be but instead a strange base directory "?,x" is being used. Is there some way that I can set the base directory to the proper location. I apologize if I haven't provide enough information to help troubleshoot, if not just please let me know what I need to send and I will do so promptly.</div><div><br></div><div>Thanks in advance for your help.</div><div><br></div><div>Thanks,</div><div>Michael Morrison</div></div>