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.
> 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
Take a look at ?setHook. -roger 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. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >
This has recently been added to the FAQ. -thomas 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. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >Thomas Lumley Assoc. Professor, Biostatistics tlumley at u.washington.edu University of Washington, Seattle
Prof Brian Ripley wrote:>>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. > >thank you all. sheesh, it broke in 1.9.0, not 1.9.1---I looked through the 1.9.1 release notes, and then tried to google for it, too. it had not occurred to me that I had skipped a release. thank you also for adding it to the faq. regards, /ivo