trouble using R CMD
That's actually my mistake. I have a /usr/local/bin/perl and /usr/local/bin comes before /usr/bin in my path, so the R configure scripts pick up that one. I'll fix it in future builds, for the time being if you use my distributions just do ln -s /usr/bin/perl /usr/local/bin/perl
On Monday, October 1, 2001, at 10:02 , David Firth wrote:
Jan, thanks. I have found the problem. The first line of /usr/local/lib/R/bin/Rdindex says #! /usr/local/bin/perl But my perl is installed in /usr/bin, not /usr/local/bin. I guess that was Apple's choice; if it was mine, I don't remember making it. After changing that first line to #! /usr/bin/perl all works fine I think. Best wishes -- David
That looks good. What happens if you just say R CMD Rdindex Also, there is a more up-to-date distribution at http;//gifi.stat.ucla.edu/R/builds --- Jan On Monday, October 1, 2001, at 09:47 , David Firth wrote:
Jan, many thanks for your reply.
No, I didn't compile it myself, but downloaded your "full" package
from CRAN about a week ago and used that.
I put in the echo as you suggested, in Rcmd after the line
PATH="${R_HOME}/bin:${PATH}"
and the path as reported by
echo $PATH
at that point is
/usr/local/lib/R/bin:/sw/bin:/sw/sbin:/Users/david/bin:/usr/local/bin:/usr/
bin:/
bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin
I also checked that R_HOME/bin/Rdindex is executable by all. Which
it is.
Dues that PATH look wrong to you?
Thanks again -- David
David Did you compile your own ? We do not have this problem on our machines (I dont think it has anything to do with PERLLIB or PERL5LIB). Something seems to be wrong with the PATH set in Rcmd. Put an echo in there and see what happens. Also, is Rdindex set chmod +x ? --- Jan On Monday, October 1, 2001, at 07:56 , David Firth wrote:
-- I have recently begun using R 1.3.1 in Darwin/X11. The Darwin I have is that which came with Mac OS 10.0.4. My first experience with trying to use R CMD has not been a success. I am trying to index a package from its documentation, in the standard way: [Localhost:lib/R/bin] david% echo $R_HOME /usr/local/lib/R [localhost:lib/R/bin] david% echo $PATH /sw/bin:/sw/sbin:/Users/david/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/ sbin:/usr/sbin:/sbin:/usr/X11R6/bin [localhost:lib/R/bin] david% echo $PERL5LIB /sw/lib/perl5 [localhost:lib/R/bin] david% echo $PERLLIB PERLLIB: Undefined variable. [localhost:lib/R/bin] david% which R /usr/local/bin/R [localhost:lib/R/bin] david% which perl /usr/bin/perl [localhost:lib/R/bin] david% R CMD Rdindex ~/relimp/man/*.Rd > INDEX /usr/local/lib/R/bin/Rcmd: command not found: Rdindex [37] [localhost:lib/R/bin] david% pwd /usr/local/lib/R/bin [localhost:lib/R/bin] david% ls BATCH LINK Rcmd Rdconv SHLIB help COMPILE R Rcmd~ Rdiff Sd2Rd libR.dylib INDEX R.bin Rd2dvi Rdindex build libtool INSTALL REMOVE Rd2txt Rprof check pager R CMD appears to be unable to find "Rdindex". Can anyone suggest what might be wrong? I have various other packages installed using fink (and the fact that PERL5LIB is set to /sw/lib/perl5 is a symptom of that). Could that be the cause? Thanks, David
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch http://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
=== Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554 phone (310)-825-9550; fax (310)-206-5658; email: deleeuw@stat.ucla.edu homepage: http://www.stat.ucla.edu/~deleeuw ======================================================== No matter where you go, there you are. --- Buckaroo Banzai http://www.stat.ucla.edu/~deleeuw/sounds/nomatter.au ========================================================
--