[R] loadhistory() in .Rprofile ?

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Aug 22 05:48:52 CEST 2004


> find("loadhistory")
[1] "package:utils"

so see the comments at the top of the NEWS for 1.9.0.  You will need to 
use utils::loadhistory() in .Rprofile, or a loadhook.

On Sat, 21 Aug 2004 ivo_welch-rstat8783 at mailblocks.com wrote:

> 
> dear wizards:  my .Rprofile has just one command for testing,
>   loadhistory("~/.Rhistory")
> but this gives me an error on R startup:
>   Error: couldn't find function "loadhistory"
> Invoking loadhistory() as the first interactive command works fine; 
> incidentally, I believe loadhistory() in the .Rprofile worked in 
> earlier or other platform R releases, too.
> 
> Is the .Rprofile now loaded before loadhistory()?  if so, this seems to 
> make it impossible to set up one big history file across directories 
> (save history prior to exit, then reload automatically on entry).  if 
> not, I probably screwed something up---again.
> 
> regards, /iaw
> ---
> ivo welch
> 
> PS: my earlier amd64 gentoo problem was caused by my use of f2c, which 
> apparently is not happy on amd64 platforms.  thanks to those who let me 
> know the problem.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list