Hello Cesar,
Thank you for the reply.

Another question I have is if it is possible to detect the library path of
an old R install, from the terminal of the new R install.

Cheers,
Tal


----------------Contact
Details:-------------------------------------------------------
Contact me: Tal.Galili@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
----------------------------------------------------------------------------------------------




On Tue, Nov 16, 2010 at 1:49 AM, csrabak <cesar.rabak@gmail.com> wrote:

> Em 14/11/2010 20:42, csrabak escreveu:
>
>  Em 14/11/2010 18:24, Tal Galili escreveu:
>>
>>> Hi John, thank you for that input.
>>> It could be that the code I wrote here:
>>>
>>> http://www.r-statistics.com/2010/04/changing-your-r-upgrading-strategy-and-the-r-code-to-do-it-on-windows/
>>>
>>>
>>> Should be updated so every time you install a new R version, you run the
>>> code for it to:
>>> 1) copy all packages from the old R version to the new R version library
>>> 2) update all the packages.
>>>
>>> But I have no clue how to do step 1.
>>>
>>
>> I've a clue but not the exact syntax for doing it:
>>
>> a) you need to get the library directory path of your current
>> installation or if putting it manually;
>> b) list.files(path = '<path to your libraries>')
>> select the directories with the return of file.info();
>>
>
> I've been educated that all above (a - b) can be obtained in a single
> object with a call to library().
>
> > libs <- library()
>
> libs$results[,"Package"] will contain the list of installed packages.
>
>
>  c) save the list for processing in the newer R version;
>> d) in the newer version you use the list as argument to
>> install.packages().
>>
>> All the aforementioned /caveats/ about packages not in CRAN still apply.
>> . .
>>
>> Regards,
>>
>
> HTH
>
> --
> Cesar Rabak
>
> ______________________________________________
> R-help@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.
>

	[[alternative HTML version deleted]]

