Skip to content
Prev 378584 / 398502 Next

Saving and reloading function in a package

I would like to put a graphic background to a model diagnostic plot.
The background is created with plot()/lines() but it takes time. 
My solution was to save the plots as functions using splinefun(). 
Those saved function can be put in a .RData file using load()  or  .rds using saveRDS().

My question is how I can put those files  in a package and load them within a function of the package.
Any suggestion please?  


Prof Dimitrios Stasinopoulos
stasinom at staff.londonmet.ac.uk