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

Roger D. Peng rpeng at jhsph.edu
Thu Jul 22 14:35:35 CEST 2004

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.
> ______________________________________________ 
> R-help at stat.math.ethz.ch mailing list 
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do
> read the posting guide! http://www.R-project.org/posting-guide.html

More information about the R-help mailing list