Re: [R] add more data to a data file, problem with .Rprofile

From: Roger D. Peng <>
Date: Thu 22 Jul 2004 - 22:35:35 EST

You should take a look at ?setHook if you use hsv() in .Rprofile. That way when the `graphics' package is loaded, it will automatically run whatever hook function you specified involving hsv(). For example, you might include something like

setHook(packageEvent("graphics", "onLoad"),

	function(...) {
		hsv <- graphics::hsv
		## Do whatever you need to do with hsv()


Francisco J Molina wrote:
> Hi,
> Is there a way to incorporate an R object x to a file already
> containing R objects? It seems that 'save' is not capable to do
> this. If I save x to a file containing previously saved data, then
> I will lose this data.
> I use the funcion hsv in .Rprofile but it is recognized.
> Couriously, if I source .Rprofile when R is already running I do
> not get any error message.
> Thank you.
> ______________________________________________
> mailing list
> read the posting guide!
> mailing list PLEASE do read the posting guide! Received on Thu Jul 22 22:43:03 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:55:10 EST