[Rd] texi2pdf doesn't find the correct MikTex installation due to erroneous Sys.which()
Rich Calaway
richcala at microsoft.com
Tue Jun 27 19:49:20 CEST 2017
Ah, but I bet you do have that path...try
> Sys.which("texify")
texify
"C:\\PROGRA~2\\MIKTEX~1.9\\miktex\\bin\\texify.exe"
> normalizePath(Sys.which("texify"))
[1] "C:\\Program Files (x86)\\MiKTeX 2.9\\miktex\\bin\\texify.exe"
Cheers,
Rich Calaway
Microsoft R Product Team
24/1341
+1 (425) 4219919 X19919
-----Original Message-----
From: R-devel [mailto:r-devel-bounces at r-project.org] On Behalf Of Joris Meys
Sent: Tuesday, June 27, 2017 10:43 AM
To: r-devel at r-project.org
Subject: [Rd] texi2pdf doesn't find the correct MikTex installation due to erroneous Sys.which()
I checked after this question popped up on Stackoverflow:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F44785961%2Fcompile-pdf-in-rstudio-works-but-knit2pdf-does-not-work-in-r-or-rstudio&data=02%7C01%7Crichcala%40microsoft.com%7C109c2b63c17443c51ecc08d4bd83fb68%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636341821947377257&sdata=NwIyGCJSQQjf1HY6r1X9a6V9Z1XI%2F74UTEe9ritYYys%3D&reserved=0
On Windows, texi2pdf looks for the texify.exe of Miktex, but looks in a very wrong place:
> Sys.which("texify")
texify "C:\\PROGRA~1\\MIKTEX~1.9\\miktex\\bin\\x64\\texify.exe"
That folder is not on my computer (I have 2.9 installed), not in my path, not in my system path and I couldn't find it in my register. So it appears as if Sys.which() is looking in the wrong place.
What could cause this?
Kind regards
Joris
--
Joris Meys
Statistical consultant
Ghent University
Faculty of Bioscience Engineering
Department of Mathematical Modelling, Statistics and Bio-Informatics
tel : +32 (0)9 264 61 79
Joris.Meys at Ugent.be
-------------------------------
Disclaimer : https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fhelpdesk.ugent.be%2Fe-maildisclaimer.php&data=02%7C01%7Crichcala%40microsoft.com%7C109c2b63c17443c51ecc08d4bd83fb68%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636341821947377257&sdata=bCbpfOJqYi2M8U7YVbh4DG1oIdQHzxVboCRTkTwXzjI%3D&reserved=0
[[alternative HTML version deleted]]
______________________________________________
R-devel at r-project.org mailing list
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-devel&data=02%7C01%7Crichcala%40microsoft.com%7C109c2b63c17443c51ecc08d4bd83fb68%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636341821947377257&sdata=5Gy480YnsDT2qgmIfIPPARL8sEmYmg%2BcetIApASA%2FR0%3D&reserved=0
More information about the R-devel
mailing list