search for: savehistori

Displaying 20 results from an estimated 71 matches for "savehistori".

Did you mean: savehistory
2002 Sep 19
3
savehistory directories and quitting R (PR#2038)
# # r-bugs@r-project.org # ###################################################### Because I work in different directories, but always want to save my .Rhistory in the same place, I have changed the system function savehistory to this: function (file = "D:/R50/.Rhistory") invisible(.Internal(savehistory(file))) When I use q() to quit R, and it asks me whether I want to
2003 May 14
1
savehistory not working properly in R?
Dear R users, I have a .RData which contains .Last object as follows: .Last <- function () { savehistory(file = ".Rhistory") } In this directory, if I issue the following command Rterm --save < mycmds.q to execute commands in mycmds.q and to save results in .RData, I got the following error message towards the end of the execution: Error in savehistory(file) :
2002 Oct 21
1
savehistory directories and quitting R (PR#2038)
Thanks-- as Duncan Murdoch also noted, R_HISTFILE can be used to solve my problem, as below. BTW it's not easy to find out about R_HISTFILE in the help system or manuals, though, unless you already know it exists-- it only seems to be described under startup options, not things to do with history. However, Duncan's reply did hint at an inconsistency, in that savehistory() defaults to
2001 Sep 28
1
savehistory: Suggestions to a \seealso{} (PR#1104)
Full_Name: Henrik Bengtsson Version: 1.3.1 OS: WinMe Submission from: (NULL) (130.235.2.229) I suggest the following \seealso to be added for savehistory: \seealso{ To execute \code{savehistory} automatically when \R quits see \link{.Last} and \link{.Rprofile}. } -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read
2004 Jul 28
2
problem with the .Rhistory
Hello, The history function doesn't seems to work when I am working with R. I have a .Rhistory file in my working directory and I have tried savehistory(file = ".Rhistory") or the command given in the history help : .Last <- function() if(interactive()) try(savehistory(".Rhistory")) and I get the same error message Error in
2002 Apr 30
1
followup -- deficiencies in readline capability
Why would R lack history capability? Someone in a private electronic mail message suggested the possibility that I was running R in a non-writable directory. This is not the case, as the following logfile shows (where "$ " is my shell prompt): $ ls -ld `pwd` drwxrwxrwx 15 sys sys 2560 Apr 30 08:10 /tmp $ R --vanilla R : Copyright 2002, The R Development Core Team
2009 Sep 05
1
Is 'history' recorded in Rscript?
Hi, I run the following command and try to save the commands that have been run in the script. But it seems that no history is recorded. Is it because that the history is not recorded in Rscript? Regards, Peng $ Rscript savehistory.R > f=tempfile() > f [1] "/tmp/Rtmp7WBjGG/file327b23c6" > history() Error in savehistory(file) : no history available to save Calls: history ->
2004 Jan 30
0
savehistory() for ESS {was "ess and debug package"}
>>>>> "StEgl" == Stephen Eglen <stephen@inf.ed.ac.uk> >>>>> on Fri, 30 Jan 2004 12:56:48 +0000 writes: >> I was trying to use the new debug package from within emacs, I get the >> following error: >> >library(debug) >> Loading required package: mvbutils >> MVBUTILS: no "tasks" vector
2008 Jan 14
1
savehistory in OSX version
Running Version 2.6.0 GUI 1.21. Generally, I enjoy working with the OSX GUI, which has some very pleasant features. Kudos to the developers! There is a nice history panel which slides out of the Console window. The buttons on the panel work as expected. I am puzzled by the behavior of history() and savehistory() run from the Console window. I would think that these functions would view and
2010 May 22
2
Capturing R console output into a file (sink+savehistory ??)
After reading more, I understand I didn't formulate my last question correctly, so please allow me to rephrase: What I am looking for is a way to save the R console session output. That is, a command that would combine the results of using: ?sink # And ?savehistory My motivation for this is that doing it will allow someone who is a blind user of R to be able to easily export his results to
2004 Nov 02
4
Loadhistory problems
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
2009 Apr 27
2
save history only option under Linux
Hi, I have a question regarding the R command options under Linux Is there any options that I can save history only? The only save option is --save, which saves both data and history. I don't want to save temporary data, because sometimes the it takes much time if the temp data is too big. However I want to restore the history for my next R session.. If there is no such option that meets my
2009 Aug 03
3
session logging
Consider all the text that one sees on the console during an R session. Is there a way, within R, to make all this text--both the "output" and the "messages"--automatically get copied to a single text file, in addition to seeing it on the console? If I remember to save the console to a file at the end of my R session, that does it. But (1) That requires pointing and
2008 Apr 13
1
.Rprofile, date tagging history, loading packages
Dear R-Helpers, I'm fiddling with my .Rprofile in Windows XP & R 2.7.0 Beta. I prefer to manually save my workspace but automatically save my command history via the .Rprofile. That is working fine once I found that "utils::" was required before the loadhistory & savehistory functions. What I would like to do is add a separator line with a date between the histories of each
2012 Oct 10
2
history() does not work?
Hi, > history() gives Error in savehistory(file) : no history available to save although I can scroll throu history with C^uparrow an C^downarrow. How can I make history() work and/or show the current history in a file, so that I can choose from previous commands? The web did not throw up anything useful. TIA --Christian -- Christian W. Hoffmann, CH - 8915 Hausen am Albis,
2012 Jan 27
2
How to write the entire session to file?
savehistory writes all the executed lines from the session. How can I write everything (executed lines and output) from the active session to a file? Using Edit | Select All then Edit Copy, I can copy everything to the clipboard and write the whole thing to a file manually. If I just used the clipboard, I can paste the whole content into another edittor (for documentation). Is there a way to
2004 Nov 08
1
can one evaluate an expression in a comment? (or insert resultsinto history?)
But that doesn't put the result into the history buffer, to be written to a file only later when I savehistory(filename). Bert Gunter also suggested ?capture.output and ?textConnection, but I cannot see how to get text into the history buffer as comments, but with evaluated expressions (values). I know how to use paste, sink, write, etc. but nothing that I can see inserts into the history
2003 Jan 20
1
Command History
I have compiled R under Solaris 7 (SunOS 5.7) with the readline-4.0 library linked. Command line editing appears to work, but I cannot access command history. If I execute several commands in R, then type "history()", I get the error message "Error in savehistory(file) : no history available to save". Also, previous command recall (C-p) does not seem to work. I am invoking
2003 Dec 17
1
Session log file...
Hi all, I tried to save a complete log of a R session we had in a seminar today... but I didn't succeed. 1) R | tee session.log This saves both input and output, but I do get the cursor key escape sequences from editing (cursor-up to get last command etc) instead of the actual command line executed. 2) savehistory Gets commands only, not the output 3) sink Gets output, without the
2006 Apr 11
1
pattern in history
Hi, Sometimes I need to consult the history of commands that are matching a regex, so I modified the utils::history function for that purpose. I found it useful. I append the code ( I only added the two lines with #**) Romain. history2 <- function (pattern="", max.show = 25, reverse = FALSE, unique = pattern!="", ...) { file1 <- tempfile("Rrawhist")