[R] "Warning message: package '...' was built under R version 2.3.0"

Tuszynski, Jaroslaw W. JAROSLAW.W.TUSZYNSKI at saic.com
Wed Nov 16 20:23:27 CET 2005


I do have single version of R (2.2.0) and all packages I have were installed
by downloading precompiled packages from PA or NC repositories within last
month. 

I also just managed to download 'modeltools' from PA2 and its DESCRIPTION
says:
Built: R 2.3.0; ; 2005-11-04 20:47:47; windows

R console:

	> utils:::menuInstallPkgs()
	--- Please select a CRAN mirror for use in this session ---
	trying URL
'http://lib.stat.cmu.edu/R/CRAN/bin/windows/contrib/2.2/modeltools_0.2-0.zip
'
	Content type 'application/zip' length 64426 bytes
	opened URL
	downloaded 62Kb

	package 'modeltools' successfully unpacked and MD5 sums checked

	The downloaded packages are in
	        C:\Documents and Settings\tuszynskij\Local
Settings\Temp\Rtmp4458\downloaded_packages
	updating HTML package descriptions
	> library(modeltools)
	Error in load(dataFile, ns) : ReadItem: unknown type 241
	In addition: Warning message:
	package 'modeltools' was built under R version 2.3.0 
	Error: unable to load R code in package 'modeltools'
	Error: package/namespace load failed for 'modeltools'

The same package downloaded from PA1 does not give me any warnings or
errors.

Jarek Tuszynski


-----Original Message-----
From: ligges at statistik.uni-dortmund.de
[mailto:ligges at statistik.uni-dortmund.de] 
Sent: Wednesday, November 16, 2005 1:04 PM
To: Tuszynski, Jaroslaw W.
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] "Warning message: package '...' was built under R version
2.3.0"


Tuszynski, Jaroslaw W. wrote:

> Uwe,
> 
> I think I used following repositories: PA1, PA2 and NC, which are the 
> closest to me and I think I got the same results in all. The package I 
> downloaded was "coin" which downloaded other packages. The consol 
> printout
> follows:
> 
> 
> 
>>chooseCRANmirror()
>>utils:::menuInstallPkgs()
> 
> trying URL 
> 'http://www.ibiblio.org/pub/languages/R/CRAN/bin/windows/contrib/2.2/c
> oin_0.
> 3-3.zip'
> Content type 'application/zip' length 793299 bytes
> opened URL
> downloaded 774Kb
> 
> package 'coin' successfully unpacked and MD5 sums checked
> 
> The downloaded packages are in
>         C:\Documents and Settings\tuszynskij\Local 
> Settings\Temp\Rtmp7594\downloaded_packages
> updating HTML package descriptions
> 
>>library(coin)
> 
> Loading required package: survival
> Loading required package: splines
> Loading required package: mvtnorm
> Loading required package: modeltools
> Error in load(dataFile, ns) : ReadItem: unknown type 241
> In addition: Warning messages:
> 1: package 'mvtnorm' was built under R version 2.3.0


I have just downloaded
http://www.ibiblio.org/pub/languages/R/CRAN/bin/windows/contrib/2.2/mvtnorm_
0.7-2.zip
and its DESCRIPTION file correctly has:
"Built: R 2.2.0; i386-pc-mingw32; 2005-10-14 14:44:12; windows"


My guess is that you are using one library for two different R versions 
and you have installed some R-devel package into the library you are now 
using with R-2.2.0 ...

You cannot mix binary packages for R < 2.3.0 with those for R-devel due 
to changes in environment handling.

Uwe Ligges




More information about the R-help mailing list