From simon.urbanek at r-project.org  Thu Jun  7 14:16:18 2012
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Thu, 7 Jun 2012 08:16:18 -0400
Subject: [Rd] 7 arguments passed to .Internal(identical) which requires 6
In-Reply-To: <1c8ba941835fdf12b34e1b1064a5dc68.squirrel@webmail.plus.net>
References: <CAF42j20RBW9SGRCA1t-uOTB330RoyRN43Yjv5GBR4580ugOxVw@mail.gmail.com>
	<loom.20120606T194231-377@post.gmane.org>
	<alpine.DEB.2.02.1206061329380.2432@luke-Latitude>
	<87AF97BC-EF06-4017-887C-49A5EA800A81@gmail.com>
	<4FD06D17.8060206@stats.ox.ac.uk>
	<8da1022c21af242215c3ed864819ff82.squirrel@webmail.plus.net>
	<4FD08072.7000107@stats.ox.ac.uk>
	<fb9978ad8c003f6a3bdfa90224389518.squirrel@webmail.plus.net>
	<4FD088B8.7080100@stats.ox.ac.uk>
	<1c8ba941835fdf12b34e1b1064a5dc68.squirrel@webmail.plus.net>
Message-ID: <285EA857-F185-4F13-AA17-CEF37F9E4B89@r-project.org>


On Jun 7, 2012, at 7:49 AM, Matthew Dowle wrote:

>> On 07/06/2012 11:40, Matthew Dowle wrote:
>>> 
>>> Prof Ripley wrote :
>>>> That Depends line is about source installs.
>>> 
>>> I can't see that documented in either Writing R Extensions or
>>> ?install.packages. Is it somewhere else? I thought Depends applied to
>>> binaries from CRAN too, which is the default method on Windows and Mac.
>> 
>> That field is documented under the description of a *source* package
>> (see the first line of section 1.1, and it is in that section) and is
>> simply copied from the source package for binary installs.  It is the
>> extra line added to the DESCRIPTION file, e.g.
>> 
>> Built: R 2.15.0; x86_64-pc-mingw32; 2012-04-02 09:27:07 UTC; windows
>> 
>> that tells you the version a binary package was built under
>> (approximately for R-patched and R-devel), and library() checks.
> 
> I'm fairly sure I understand all that. I'm still missing something more
> basic probably. Consider the follow workflow :
> 
> I look on CRAN at package boot. Its webpage states "Depends R (>=
> 2.14.0)". I'm a user running R and I know I use 2.14.1, so I think great I
> can use it. I install it as follows.
> 
>> version
> version.string R version 2.14.1 (2011-12-22)
>> install.packages("boot")
> trying URL
> 'http://cran.ma.imperial.ac.uk/bin/windows/contrib/2.14/boot_1.3-4.zip'
> Content type 'application/zip' length 469615 bytes (458 Kb)
> opened URL
> downloaded 458 Kb
> 
> package ?boot? successfully unpacked and MD5 sums checked
> 
>> require(boot)
> Loading required package: boot
> Warning message:
> package ?boot? was built under R version 2.14.2
>> 
> 
> Does this mean that CRAN maintainers expect me to run the latest version
> of the major release I'm using (R 2.14.2 in this case), not the current
> release of R (R 2.15.0 currently) as you wrote earlier?

You are expected to run the latest patch version of your major.minor R version (ideally, you should be running the latest release but you don't have to if you are ok with getting no updates).


>   If that's the
> case I never realised it before, but that seems very reasonable.  When I
> ran the above just now I expected it to say "package 'boot' was built
> under R version 2.15.0".  But it didn't, it said 2.14.2.  So it seems to
> be my misunderstanding.
> 

Packages are specific to the major.minor version, we don't guarantee any compatibility across non-patch versions, i.e. you cannot expect package binary for R 2.15.0 to work in R 2.14.2 or vice versa. If you have R x.y.z then you are asking for binaries for R x.y.* - in your case you're running 2.14.2 so you get the latest build of the package for R 2.14.*. Have a look at CRAN, e.g.
http://cran.r-project.org/bin/windows/contrib/
you will see separate packages for every x.y version of R.

Cheers,
Simon



[Rd] 7 arguments passed to .Internal(identical) which requires 6
Simon Urbanek