Re: [Rd] [patch] giving library() a 'version' argument

2012-04-13 Thread Ken Williams
From: Martin Maechler [maech...@stat.math.ethz.ch] > Indeed nowadays, packageDescription() *) *does* > use the correct package version, by inspecting the "path" > attribute of the package, in the same way as > searchpaths() Yeah, that's what

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-13 Thread Martin Maechler
> Roebuck,Paul L > on Thu, 12 Apr 2012 14:17:45 -0500 writes: > On 4/12/12 1:56 PM, "Ken Williams" wrote: >> On April 12, 2012 1:48 PM, Paul Roebuck wrote: >> >>> Not sure I follow you here. The packageVersion() method is >>> essentially a shortcut to packageDesc

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-12 Thread Roebuck,Paul L
On 4/12/12 1:56 PM, "Ken Williams" wrote: > On April 12, 2012 1:48 PM, Paul Roebuck wrote: > >> Not sure I follow you here. The packageVersion() method is essentially a >> shortcut to packageDescription("MyPackage")$Version. I generally avoid >> doing package upgrades in my scripts so the loaded

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-12 Thread Ken Williams
> -Original Message- > From: Roebuck,Paul L [mailto:proeb...@mdanderson.org] > Sent: Thursday, April 12, 2012 1:03 PM > To: R-devel > Cc: Ken Williams > Subject: Re: [Rd] [patch] giving library() a 'version' argument > > On 4/12/12 10:11 AM, Ken William

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-12 Thread Duncan Murdoch
On 12/04/2012 1:46 PM, Ken Williams wrote: > -Original Message- > From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] > Sent: Thursday, April 12, 2012 12:27 PM > To: Ken Williams > Cc: r-devel@r-project.org > Subject: Re: [Rd] [patch] giving library() a

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-12 Thread Roebuck,Paul L
On 4/12/12 10:11 AM, Ken Williams wrote: >> On 4/12/12 7:22 AM, Duncan Murdoch wrote: > [SNIP] > ... > The main hats targeted here are really people (like me, of course) who are > trying to "productionize" results, not so much people who are doing offline > analysis. In a production system > >>

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-12 Thread Ken Williams
> -Original Message- > From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] > Sent: Thursday, April 12, 2012 12:27 PM > To: Ken Williams > Cc: r-devel@r-project.org > Subject: Re: [Rd] [patch] giving library() a 'version' argument > > I haven

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-12 Thread Duncan Murdoch
On 12/04/2012 11:11 AM, Ken Williams wrote: > -Original Message- > From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] > Sent: Thursday, April 12, 2012 7:22 AM > To: Ken Williams > Cc: r-devel@r-project.org > Subject: Re: [Rd] [patch] giving library() a

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-12 Thread Ken Williams
> -Original Message- > From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] > Sent: Thursday, April 12, 2012 7:22 AM > To: Ken Williams > Cc: r-devel@r-project.org > Subject: Re: [Rd] [patch] giving library() a 'version' argument > > On 12-

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-12 Thread Ken Williams
> -Original Message- > From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Sent: Thursday, April 12, 2012 7:54 AM > To: Duncan Murdoch > Cc: Ken Williams; r-devel@r-project.org > Subject: Re: [Rd] [patch] giving library() a 'version' argument > &

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-12 Thread Prof Brian Ripley
A very important point is that library() *had* a 'version' argument for several years, and this is not what it did. So Mr Williams needs to do his homework From such a version of R: version: A character string denoting a version number of the package to be loaded, for use wit

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-12 Thread Duncan Murdoch
On 12-04-11 11:28 AM, Ken Williams wrote: I've made a small enhancement to R that would help developers better control what versions of code we're using where. Basically, to load a package in R, one currently does: library(whateverPackage) and with the enhancement, you can e

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-11 Thread Ken Williams
Apparently the patch file got eaten. Let me try again with a .txt extension. -Ken > -Original Message- > From: Ken Williams > Sent: Wednesday, April 11, 2012 10:28 AM > To: r-devel@r-project.org > Subject: [patch] giving library() a 'version' argument > > I've made a small enhancement t

[Rd] [patch] giving library() a 'version' argument

2012-04-11 Thread Ken Williams
I've made a small enhancement to R that would help developers better control what versions of code we're using where. Basically, to load a package in R, one currently does: library(whateverPackage) and with the enhancement, you can ensure that you're getting at least version X