From jorismeys at gmail.com  Tue Jun 27 21:20:27 2017
From: jorismeys at gmail.com (Joris Meys)
Date: Tue, 27 Jun 2017 21:20:27 +0200
Subject: [Rd] texi2pdf doesn't find the correct MikTex installation due
 to erroneous Sys.which()
In-Reply-To: <CY4PR21MB0471401D58C3AAF55FBB80D9DEDC0@CY4PR21MB0471.namprd21.prod.outlook.com>
References: <CAO1zAVYx4u5TZSYz-9kCohv6cTeTaXRBPFWRT_xccE0VjtqSuQ@mail.gmail.com>
 <CY4PR21MB0471401D58C3AAF55FBB80D9DEDC0@CY4PR21MB0471.namprd21.prod.outlook.com>
Message-ID: <CAO1zAVbOZfaN5B4zQwATuOViEKcNY1V3fFTEwSxW0WCs+=YgeQ@mail.gmail.com>

Aargh... I've been windofied again. When will I learn...

On 27 Jun 2017 19:49, "Rich Calaway" <richcala at microsoft.com> 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: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%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
> 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%7C109c2b63c17443c51ecc08d4bd83
> fb68%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%
> 7C636341821947377257&sdata=bCbpfOJqYi2M8U7YVbh4DG1oIdQHzx
> VboCRTkTwXzjI%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%7C72f988bf86f141af91ab2d7cd011
> db47%7C1%7C0%7C636341821947377257&sdata=5Gy480YnsDT2qgmIfIPPARL8sEmYmg
> %2BcetIApASA%2FR0%3D&reserved=0
>

	[[alternative HTML version deleted]]



[Rd] texi2pdf doesn't find the correct MikTex installation due to erroneous Sys.which()
Joris Meys