[R] installing a new package
Don MacQueen
macq at llnl.gov
Sat Mar 29 00:57:32 CET 2008
At the risk of oversimplifying, there are three steps to developing
and using a package:
1) build
2) install
3) load
Evidently your package does steps 1 and 2 but not 3.
Furthermore, it tells you, "not a valid package", and says something
that is suggestive of a version problem:
"installed < 2.0.0"
I think you have to look very carefully at your package and look for
what is invalid about it. There must be some requirement of package
structure, or contents, or version of something, that your package
doesn't meet or violates.
Since your package can be installed, go into R, and try
require(HighProbability)
but set the verbose argument to something that gives more information
than the default. Maybe that will give some helpful information, more
than the check provides.
Either that, or delve deeply into the CMD check script(s) and find
out exactly what can trigger the error message.
Anyway, that's the best I can come up with, without actually having
the package files.
-Don
At 2:52 PM -0400 3/28/08, zmontaze at uottawa.ca wrote:
>Dear all,
>I have prepared a new package to install in R, I tried to check my package
>and I got the following message
>------------------------------------------------------------------------
>232sub141:~ zahra$ R CMD check /Users/zahra/Desktop/HighProbability
>* checking for working latex ... OK
>* using log directory '/Users/zahra/HighProbability.Rcheck'
>* using R version 2.6.2 (2008-02-08)
>* checking for file 'HighProbability/DESCRIPTION' ... OK
>* this is package 'HighProbability' version '1.0-3'
>* checking package dependencies ... OK
>* checking if this is a source package ... OK
>* checking whether package 'HighProbability' can be installed ... OK
>* checking package directory ... OK
>* checking for portable file names ... OK
>* checking for sufficient/correct file permissions ... OK
>* checking DESCRIPTION meta-information ... OK
>* checking top-level files ... OK
>* checking index information ... OK
>* checking package subdirectories ... OK
>* checking R files for non-ASCII characters ... OK
>* checking R files for syntax errors ... OK
>* checking whether the package can be loaded ... ERROR
>Error in library(HighProbability) :
> 'HighProbability' is not a valid package -- installed < 2.0.0?
>Execution halted
>
>It looks like this package has a loading problem: see the messages for
>details.
>------------------------------------------------------------------------
>
>I don't know what the "Error in library(package name)" means and how can I
>solve it. I work with Mac.
>I'll appreciate it if you could help me.
>All the best,
>Zahra
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
--
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
925-423-1062
More information about the R-help
mailing list