[Rd] compiling R-devel *on Windows*

apjaworski at mmm.com apjaworski at mmm.com
Tue Sep 4 21:02:19 CEST 2007


Thanks for quick responses from Prof Ripley and Duncan Murdoch.

I tried to play around with TMP and TEMP paths but again with no success.
It looks like the problem was this:
1.  I have texinfo cygwin package installed.
2.  This package has a shell script named texi2dvi
3.  This script is installed in /bin which was before the .../miktex/bin
directory in my PATH variable.

For some reason the texi2dvi script does not process the paths correctly,
or at least not the way that R make process expects it.  After I moved the
miktex/bin in front of /bin in my PATH variable everything works as before.

Thanks again for your time,

Andy

__________________________________
Andy Jaworski
518-1-01
Process Laboratory
3M Corporate Research Laboratory
-----
E-mail: apjaworski at mmm.com
Tel:  (651) 733-6092
Fax:  (651) 736-3122


                                                                           
             Prof Brian Ripley                                             
             <ripley at stats.ox.                                             
             ac.uk>                                                     To 
                                       Duncan Murdoch                      
             08/31/2007 10:59          <murdoch at stats.uwo.ca>              
             PM                                                         cc 
                                       apjaworski at mmm.com                  
                                       r-devel at stat.math.ethz.ch           
                                                                   Subject 
                                       Re: [Rd] compiling R-devel *on      
                                       Windows*                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




This is pretty clearly a problem in texi2dvi (which is part of MiKTeX),
not in R, since the line passed is

texi2dvi --pdf --texinfo="@set UseExternalXrefs " R-FAQ.texi

I get

This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.6)
entering extended mode
(c:\DOCUME~1\ripley\LOCALS~1\Temp\mik54358\_xtr\R-FAQ.texi
(C:\packages\miktex2.6\tex\texinfo\base\texinfo.tex
...

I think your TMP variable is set to a Cygwin-style path, although when I
experimented with that MiKTeX dropped back to c:\TEMP.

On Fri, 31 Aug 2007, Duncan Murdoch wrote:

> apjaworski at mmm.com wrote:
>> Hello.
>>
>> I am in a habit of compiling daily snapshots of R-devel and R-patched on
my
>> Windows XP workstation.  I have cygwin environment with up-to-date
RTools
>> and MiKTeX.  I run cygwin and MiKTeX upadaters pretty often (every
couple
>> of days) so both of them are reasonably current.
>>
>> Recently I noticed a small annoyance when compiling R-dvel.  It started
>> happening right after I updated to the new version of RTools (containing
>> MinGW 4.2.1-sjlj compilers).  Everything else stayed the same with
possible
>> exception of MiKTeX update.

But there was a change to use texi2dvi if present a couple of weeks ago.

>> I usually just type "make distribution" to compile everything.  The
>> compilation itself goes smoothly.  Then the PDF version of the reference
>> manual is created.  Then I see this:
>>
>> ...
>> Output written on refman.pdf (1563 pages, 7869936 bytes).
>> Transcript written on refman.log.
>> creating doc/manual/version.texi
>> texi2dvi --pdf --texinfo="@set UseExternalXrefs " R-FAQ.texi
>> This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.6)
>> entering extended mode
>> ! I can't find file `\tmp\t2d6036\xtr\R-FAQ.texi'.
>> <*> /tmp/t2d6036/xtr/R-FAQ.texi
>>
>> Please type another input file name:
>>
>> Now the file  /tmp/t2d6036/xtr/R-FAQ.texi exists at this point is not
empty
>> and has usual protection codes.  I tried different versions of back and
>> front slashes, double backslashes, etc., but to no avail.  I was getting
>> the same message - the file cannot be found.  The only thing that works
is
>> the plain file name.  That is, if I just type (or copy and paste) the
>> string R-FAQ.texi everything works fine.  This happens three times for
>> every manual (except the refman).  After that the compilation ends
>> normally, the windows installer is created and, when I run the
installer, I
>> get everything working correctly including PDFs of the manuals.
>>
>> It looks to me like the /tmp/t2d6036/xtr/ part of the name gets already
>> pre-pended to whatever name the make process provides so it expects just
>> the file name.  Alternatively, something changed in my MiKTeX setup due
to
>> updates.  However, the refman compiles properly and I can also compile
>> other LaTeX with no apparent problems.
>>
>> Thanks in advance,
>
> How do you have your temp directory set?  I'm not sure if it's R or one
> of the build tools that's important here, so it's worth looking at all
> environment variables TMPDIR, TEMP, TMP, etc.
>
> Are you running the build in Cygwin, or in a Windows CMD window?  I use
> Cygwin (not quite so current as yours) and don't see this error.
>
> Duncan Murdoch
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list