Re: [R] installing a new package

From: Don MacQueen <>
Date: Fri, 28 Mar 2008 16:57:32 -0700

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

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.


At 2:52 PM -0400 3/28/08, 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
>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,
> mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 29 Mar 2008 - 00:10:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 29 Mar 2008 - 12:30:27 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive