I am having trouble installing the tree package on linux. I followed all the steps in section 5.2 of the FAQ ci.tuwien.ac.at/~hornik/R/R-FAQ.html#How can add-on packages be installed? In particular, I typed 'R CMD INSTALL -l /home/cs/murphyk/R tree_1.0-2.tar.gz'. This created the files 'LibIndex', 'R.css' and a subdirectory called 'tree'. I then created a ~/.Renviron file with the line 'R_LIBS="/home/cs/murphyk/R"'. Inside R, I typed 'library()' and got back Packages in library `/home/cs/murphyk/R/tree"': <blank> Packages in library `/usr/lib/R/library': base The R base package ctest Classical Tests ... So although it find the murphyk/R/tree directory, it doesn't see the package. I considered using the windows version instead, but Ripley's comment in section 3.1 of the windows FAQ (about it being a lot of work) put me off. stats.ox.ac.uk/pub/R/rw-FAQ.html#Can I install packages (libraries) in this version? (Besides, I don't have a C compiler on my windows machine.) Kevin -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Fri, 6 Jul 2001, Kevin Murphy wrote:> I am having trouble installing the tree package on linux. > I followed all the steps in section 5.2 of the FAQ > > ci.tuwien.ac.at/~hornik/R/R-FAQ.html#How can add-on packages be installed? > > In particular, I typed 'R CMD INSTALL -l /home/cs/murphyk/R > tree_1.0-2.tar.gz'. This created the files 'LibIndex', 'R.css' and a > subdirectory called 'tree'. > > I then created a ~/.Renviron file with the line > 'R_LIBS="/home/cs/murphyk/R"'.The double quotes are the problem. R was looking in the directory "/home/cs/murphyk/R" not in /home/cs/murphyk/R This seems to be a bug in the FAQ. Incidentally, Linux is, of course, infinitely superior in every way to any other operating system :^), but installing precompiled binaries under Windows is completely painless. Both tree and rpart (which is now a `recommended' part of the R distribution) are available as binaries. -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._