My coauthor made a new R package GeneLogit (100% R code) which installs ok on R 2.3 on Windows. But when I type library(GeneLogit) it gave the error message Error in library(GeneLogit) : 'GeneLogit' is not a valid package -- installed < 2.0.0? It runs on R 1.9.0 just fine. It seems that others have encountered same problem but no solution is found by googling How can I fix this problem? Many thanks. Jason Liao, http://www.geocities.com/jg_liao Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb University of Medicine and Dentistry of New Jersey 683 Hoes Lane West, Piscataway? NJ 08854 phone 732-235-5429, School of Public Health office phone 732-235-9824, Cancer Institute of New Jersey office
Dear Jason, Get the source package (rather than the Windows binary) and rebuild it under R 2.3.0, or have someone do this for you. See the R Installation and Administration and Writing R Extensions manuals for details. I hope this helps, John -------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox --------------------------------> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Jason Liao > Sent: Tuesday, May 09, 2006 7:52 PM > To: r-help at stat.math.ethz.ch > Subject: [R] new package error message > > My coauthor made a new R package GeneLogit (100% R code) > which installs ok on R 2.3 on Windows. But when I type > > library(GeneLogit) > > it gave the error message > > Error in library(GeneLogit) : 'GeneLogit' is not a valid > package -- installed < 2.0.0? > > It runs on R 1.9.0 just fine. It seems that others have > encountered same problem but no solution is found by googling > > How can I fix this problem? Many thanks. > > Jason Liao, http://www.geocities.com/jg_liao Dept. of > Biostatistics, http://www2.umdnj.edu/bmtrxweb University of > Medicine and Dentistry of New Jersey > 683 Hoes Lane West, Piscataway, NJ 08854 phone 732-235-5429, > School of Public Health office phone 732-235-9824, Cancer > Institute of New Jersey office > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html
On Tue, 9 May 2006, Jason Liao wrote:> My coauthor made a new R package GeneLogit (100% R code) which installs > ok on R 2.3 on Windows. But when I type > > library(GeneLogit) > > it gave the error message > > Error in library(GeneLogit) : 'GeneLogit' is not a valid package -- > installed < 2.0.0? > > It runs on R 1.9.0 just fine. It seems that others have encountered > same problem but no solution is found by googlingIn every case I have ever seen mentioned, the solution was to install the package properly by R CMD INSTALL and not by a manual kludge. The message is given if the installation lacks the metadata in the Meta subdirectory which INSTALL creates. -- 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
Thank you very much, Prof. Ripley. This is our own package and in R only, no C or Fortran code. We are doing this on Windows. So it seems that we have to setup the complete R development system for a simple R package to work. Maybe we should just source() the file in, less elegant though. Jason --- Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:> > In every case I have ever seen mentioned, the solution was to install > the > package properly by R CMD INSTALL and not by a manual kludge. > > The message is given if the installation lacks the metadata in the > Meta > subdirectory which INSTALL creates. > > -- > 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 >Jason Liao, http://www.geocities.com/jg_liao Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb University of Medicine and Dentistry of New Jersey 683 Hoes Lane West, Piscataway? NJ 08854 phone 732-235-5429, School of Public Health office phone 732-235-9824, Cancer Institute of New Jersey office
Reasonably Related Threads
- when can we expect Prof Tierney's compiled R?
- 64 bit R slower than 32 bit R on Sun Sparc Solaris?
- how to find the location of the first TRUE of a logical vector
- truly object oriented programming in R
- random number generator: same seed used in different sessions