david.firth@nuf.ox.ac.uk
2001-May-11 15:59 UTC
[Rd] Windows, RCMD INSTALL and path (PR#939)
Full_Name: David Firth Version: 1.2.3 OS: Windows NT4 Submission from: (NULL) (163.1.103.107) Two things that look like bugs: 1. RCMD INSTALL does not seem to cope with quotes in the Windows path. With my path set to PATH="C:\R\Rtools";"C:\R\rw1023\bin";C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\ mingw2\bin I get, for example, C:\R>RCMD INSTALL boot RCMD INSTALL boot make: Entering directory `/cygdrive/c/R/rw1023/src/gnuwin32' make DLLNM= EXTRADOCS= \ -C C:/R/boot PKG=boot RHOME=C:/R/rw1023 RLIB=C:/R/rw1023/library \ -f C:/R/rw1023/src/gnuwin32/MakePkg make: make: Command not found make: *** [pkg-boot] Error 127 make: Leaving directory `/cygdrive/c/R/rw1023/src/gnuwin32' *** Installation of boot failed *** But if I remove the quotes, as in PATH=C:\R\Rtools;C:\R\rw1023\bin;C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\ mingw2\bin then all goes as it should. (Why do I have the quotes there anyway, you ask? Well, I started out with PATH="C:Program Files\R\Rtools";"C:Program Files\R\rw1023\bin";C:\Perl\bin\;C:\ WINNT\system32;C:\WINNT;C:\mingw2.bin but then RCMD INSTALL failed even more rapidly, presumably on account of the space in the directory name?) If this can't be fixed, perhaps add a note in the documentation about these things? (I looked in "Writing R Extensions" but found no mention of this problem.) 2. A smaller thing I noticed in help(INSTALL): under "Usage:" it should say "Rcmd", not "Rcnd". Best regards -- David -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Fri, 11 May 2001 david.firth@nuffield.oxford.ac.uk wrote:> Full_Name: David Firth > Version: 1.2.3 > OS: Windows NT4 > Submission from: (NULL) (163.1.103.107) > > > Two things that look like bugs: > > 1. RCMD INSTALL does not seem to cope with quotes in the Windows path. With myI'd say the other way round. Nowhere does it say that it will work with quotes.> path set to > > PATH="C:\R\Rtools";"C:\R\rw1023\bin";C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\ > > mingw2\bin > > I get, for example, > > C:\R>RCMD INSTALL boot > RCMD INSTALL boot > > make: Entering directory `/cygdrive/c/R/rw1023/src/gnuwin32' > make DLLNM= EXTRADOCS= \ > -C C:/R/boot PKG=boot RHOME=C:/R/rw1023 RLIB=C:/R/rw1023/library \ > -f C:/R/rw1023/src/gnuwin32/MakePkg > make: make: Command not found > make: *** [pkg-boot] Error 127 > make: Leaving directory `/cygdrive/c/R/rw1023/src/gnuwin32' > *** Installation of boot failed *** > > But if I remove the quotes, as in > > PATH=C:\R\Rtools;C:\R\rw1023\bin;C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\ > > mingw2\bin > > then all goes as it should. > > (Why do I have the quotes there anyway, you ask? Well, I started out with > > PATH="C:Program Files\R\Rtools";"C:Program > Files\R\rw1023\bin";C:\Perl\bin\;C:\ > WINNT\system32;C:\WINNT;C:\mingw2.bin > > but then RCMD INSTALL failed even more rapidly, presumably on account of the > space in the directory name?) > > If this can't be fixed, perhaps add a note in the documentation about these > things? (I looked in "Writing R Extensions" but found no mention of this > problem.)We didn't ask you to stop beating your wife because it never occurred to us that you would.... Note, though, this is a problem with the tools, not with anything we provide, and the rw-FAQ does warn about spaces in paths. Latex, for example, will fail with spaces in path names. Also Building -------- You also need the R source (R-1.3.0.tgz). Then: untar R-1.3.0.tgz somewhere (with no spaces in the path names), might be hint.> > 2. A smaller thing I noticed in help(INSTALL): under "Usage:" it should say > "Rcmd", not "Rcnd".Already fixed. -- Brian D. Ripley, ripley@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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._