[R] Upgrading R means I lose my packages

ONKELINX, Thierry Thierry.ONKELINX at inbo.be
Thu Aug 28 10:12:51 CEST 2008


On a windows machine you get the same problem. Useless one uses tha same
trick as Rolf suggested: don't install the packages in the default
directory and set R_LIBS to that directory. Then all you need to do
after an upgrade is to set R_LIBS in the new version and run
update.package(checkBuilt = TRUE). Given Rolf's suggestion I suppose
this trick will work on a Mac too.

HTH,

Thierry


------------------------------------------------------------------------
----
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature
and Forest
Cel biometrie, methodologie en kwaliteitszorg / Section biometrics,
methodology and quality assurance
Gaverstraat 4
9500 Geraardsbergen
Belgium
tel. + 32 54/436 185
Thierry.Onkelinx op inbo.be
www.inbo.be

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to
say what the experiment died of.
~ Sir Ronald Aylmer Fisher

The plural of anecdote is not data.
~ Roger Brinner

The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of
data.
~ John Tukey



	I'm not sure --- I find Mac OS very confusing.  But I have the 
***impression*** that
	(on my system) by default packages get installed into

		~/Library/R/2.7/library

	i.e. into a library inside the directory tree rooted in my login

directory.

	I don't use this --- I've created my own library ~/Rlib and have
	set up an environment variable to point to it.

	(This works properly only if you start R from the command line;
for
	reasons I don't understand if you start R by clicking on the
icon
	then R doesn't know about the R_LIBS environment variable.  But
since
	all civilized people start R from the command line .....)

	I have no idea why youse guys' systems would eschew using
~/Library/
<whatever>.

		cheers,

			Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}

______________________________________________
R-help op 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.

Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is door een geldig ondertekend document.
The views expressed in  this message and any annex are purely those of the writer and may not be regarded as stating an official position of INBO, as long as the message is not confirmed by a duly signed document



More information about the R-help mailing list