Skip to content
Prev 306790 / 398506 Next

Having two different versions of a package in the same R installation

I don't know if it would work but a kludgy attempt would be to install lme4 from CRAN, rename the lme4 directory in library to lme4cran; then install lme4 from R-forge and rename the lme4 directory to lme4forge. Then create a script flexible script that would copy one of the directories to a directory called lme4 on the fly. I don't know if it would work, but I just wonder if there would possibly a more elegant way.

Regards
S?ren

-----Original Message-----
From: Greg Snow [mailto:538280 at gmail.com] 
Sent: 2. oktober 2012 22:27
To: S?ren H?jsgaard
Cc: r-help at r-project.org
Subject: Re: [R] Having two different versions of a package in the same R installation

So if you have both loaded in the same instance of R, how will R know which version of lmer or other functions that you want to run?

It seems cleanest to me to have the 2 different instances of R running like you do now.  The other option would be to change all the names (exported ones anyways) in one version and change that package name as well.  Then you would have 2 different package names with different exported function names.
On Tue, Oct 2, 2012 at 2:18 PM, S?ren H?jsgaard <sorenh at math.aau.dk> wrote:
--
Gregory (Greg) L. Snow Ph.D.
538280 at gmail.com