History files saved using nFile Save History do not open when using File Load History. I notice that when they are saved they do not seem to have a file extension and there is no option to chose an extension. Is this a problem. Other than this it seems so simple that I can't see what the problem is. I've tried using loadhistory and savehistory with the same problems. The syntax guide for load history requires the file name, but doesn't specify if this should include and extension or what this should be. Where am I going wrong
Probably you have an R version >= 1.9.1, then to make use of loadhistory you have to load the 'utils' library (type library(utils) on your .Rprofile). Best A.S. ---------------------------- Alessandro Semeria Models and Simulations Laboratory Montecatini Environmental Research Center (Edison Group), Via Ciro Menotti 48, 48023 Marina di Ravenna (RA), Italy Tel. +39 544 536811 Fax. +39 544 538663 E-mail: alessandro.semeria at cramont.it
Please read the posting guide, and tell us what platform you are using, R version and so on. On Tue, 2 Nov 2004, Robert Brown FM CEFAS wrote:> History files saved using nFile Save History do not open when using File > Load History. I notice that when they are saved they do not seem to have > a file extension and there is no option to chose an extension. Is this > a problem. Other than this it seems so simple that I can't see what the > problem is. I've tried using loadhistory and savehistory with the same > problems. The syntax guide for load history requires the file name, but > doesn't specify if this should include and extension or what this should > be. Where am I going wrongWhat have file extensions to do with this? A file name is exactly that, the name of a file, the habit of Windows Explorer to hide parts of the name notwithstanding. The default name is .Rhistory, and that is not an extension! This does work as documented in R 2.0.0 under Windows. If you can describe what you are doing in enough detail for someone to reproduce it, they may be able to spot what is wrong. -- 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
Robert Brown FM CEFAS wrote:> History files saved using nFile Save History do not open when using > File Load History. I notice that when they are saved they do not seem > to have a file extension and there is no option to chose an > extension. Is this a problem. Other than this it seems so simple > that I can't see what the problem is. I've tried using loadhistory > and savehistory with the same problems. The syntax guide for load > history requires the file name, but doesn't specify if this should > include and extension or what this should be. Where am I going wrongSee ?loadhistory. The extension can be choosen arbitrarily, the complete default filename is ".Rhistory". Works for me: # Type somethimg in R, then: savehistory("c:/temp.txt") q("no") # Start R again loadhistory("c:/temp.txt") # Now use the arrow keys and find that # the formerly saved history has been # loaded correctly ... Uwe Ligges> > ______________________________________________ > 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
Sorry, some times, as today, I read e-mails on a very poor web-Lotus Notes interface with a browser on a linux box, and the bad formatting text mislead me about r.g.brown's O.S. A.S. ---------------------------- Alessandro Semeria Models and Simulations Laboratory Montecatini Environmental Research Center (Edison Group), Via Ciro Menotti 48, 48023 Marina di Ravenna (RA), Italy Tel. +39 544 536811 Fax. +39 544 538663 E-mail: alessandro.semeria at cramont.it