Re: [R] installing a new package

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Sat, 29 Mar 2008 13:06:02 +0100

Don MacQueen wrote:
> 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.

And the having the latter, it would be much easier to help for all of us.

Uwe Ligges

>
> -Don
>
> At 2:52 PM -0400 3/28/08, zmontaze@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.

>

>

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. Received on Sat 29 Mar 2008 - 12:11:26 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive