hi, can anyone confirm the following problem? when i do dos> rcmd rd2dvi --pdf my-package-name i get dos> Can't open perl script "c:\PROGRA~1\r\rw1091/bin/rd2dvi": No such file or directory might the problem be in (double back slashes rather than forward slashes) R-1.9.1\src\gnuwin32\front-ends\rcmdfn.c(251): strcat(cmd, RHome); strcat(cmd, "/bin/Rd2dvi.sh");> version_ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 9.1 year 2004 month 06 day 21 language R @windoze xp sp1 h. ---------------------------------- Hiroyuki Kawakatsu School of Management and Economics 25 University Square Queen's University, Belfast Belfast BT7 1NN Northern Ireland United Kingdom Tel +44 (0)28 9097 3290 Fax +44 (0)28 9033 5156
On Fri, 16 Jul 2004 13:52:21 +0100, Hiroyuki Kawakatsu <hkawakat at qub.ac.uk> wrote :>hi, > >can anyone confirm the following problem? when i do > >dos> rcmd rd2dvi --pdf my-package-name > >i get > >dos> Can't open perl script "c:\PROGRA~1\r\rw1091/bin/rd2dvi": No such file or directoryNo, the problem is that rcmd processes commands in a case sensitive way. You need rcmd Rd2dvi .... When you have an unrecognized command, rcmd tries to figure out if it's a Perl script (no extension) or a SH script (.sh extension), then passes it to the OS to process. This means rcmd rd2dvi.sh .... works in a case-insensitive way, but that's more or less by accident. Generally R tries to be case sensitive, but sometimes the work is done by the OS, and then it depends on the file system. Duncan Murdoch
Hiroyuki Kawakatsu wrote:> hi, > > can anyone confirm the following problem? when i do > > dos> rcmd rd2dvi --pdf my-package-namea) It's not "dos>", but the Windows command shell. b) It's called Windows, not windoze c) The script is called Rd2dvi.sh and in this case the command name (Rd2dvi) is case sensitive, hence use R CMD Rd2dvi --pdf my-package-name Uwe Ligges> i get > > dos> Can't open perl script "c:\PROGRA~1\r\rw1091/bin/rd2dvi": No such file or directory > > might the problem be in (double back slashes rather than forward slashes) > > R-1.9.1\src\gnuwin32\front-ends\rcmdfn.c(251): strcat(cmd, RHome); strcat(cmd, "/bin/Rd2dvi.sh"); > > > >>version > > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 1 > minor 9.1 > year 2004 > month 06 > day 21 > language R > > @windoze xp sp1 > > h. > ---------------------------------- > Hiroyuki Kawakatsu > School of Management and Economics > 25 University Square > Queen's University, Belfast > Belfast BT7 1NN > Northern Ireland > United Kingdom > Tel +44 (0)28 9097 3290 > Fax +44 (0)28 9033 5156 > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html