texi2pdf doesn't find the correct MikTex installation due to erroneous Sys.which()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

texi2pdf doesn't find the correct MikTex installation due to erroneous Sys.which()

Joris FA Meys
I checked after this question popped up on Stackoverflow:

https://stackoverflow.com/questions/44785961/compile-pdf-in-rstudio-works-but-knit2pdf-does-not-work-in-r-or-rstudio

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
[hidden email]
-------------------------------
Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: texi2pdf doesn't find the correct MikTex installation due to erroneous Sys.which()

R devel mailing list
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:[hidden email]] On Behalf Of Joris Meys
Sent: Tuesday, June 27, 2017 10:43 AM
To: [hidden email]
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
[hidden email]
-------------------------------
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]]

______________________________________________
[hidden email] 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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: texi2pdf doesn't find the correct MikTex installation due to erroneous Sys.which()

Joris FA Meys
Aargh... I've been windofied again. When will I learn...

On 27 Jun 2017 19:49, "Rich Calaway" <[hidden email]> wrote:

> 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:[hidden email]] On Behalf Of Joris
> Meys
> Sent: Tuesday, June 27, 2017 10:43 AM
> To: [hidden email]
> 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%7C72f988bf86f141af91ab2d7cd011
> db47%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
> [hidden email]
> -------------------------------
> Disclaimer : https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fhelpdesk.ugent.be%2Fe-maildisclaimer.php&
> data=02%7C01%7Crichcala%40microsoft.com%7C109c2b63c17443c51ecc08d4bd83
> fb68%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%
> 7C636341821947377257&sdata=bCbpfOJqYi2M8U7YVbh4DG1oIdQHzx
> VboCRTkTwXzjI%3D&reserved=0
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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%7C72f988bf86f141af91ab2d7cd011
> db47%7C1%7C0%7C636341821947377257&sdata=5Gy480YnsDT2qgmIfIPPARL8sEmYmg
> %2BcetIApASA%2FR0%3D&reserved=0
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Loading...