similar to: Saving history across sessions

Displaying 20 results from an estimated 4000 matches similar to: "Saving history across sessions"

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
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
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
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
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 ->
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) :
2007 Oct 05
3
Mac GUI and .Renviron
The .Renviron and .First functions do not seem to work the same way on a Mac OS 10.4 as on a Windows XP machine. From working in Windows I am used to creating a new directory for each data analysis project. In the new directory I place First, an .Renviron file consisting of the following text: R_HISTFILE="history.txt" R_HISTSIZE=1000000 Second, an .RData file containing a .First
2006 Mar 03
2
Command-line editing & history
Hi all, Are there any plans to add more functionality to command-line editing and history editing on the command line? In MATLAB (I know, comparisons are odious ...), you can type "p" and up-arrow on the command line and scroll through the recently entered commands beginning with "p". This is a very useful feature and something that I believe is not replicated in R. Please
2000 Jun 29
3
Overal plot title after mfrow and .Rhistory questions.
Hello everyone, I had a few questions that I have not been able to figure out despite a lot of reading. 1) Adding a title to a multiplot figure: If I plot multiple plots with >par(mfrow=c(2,6)) how do I add an overall title to the figure, not the individual plots? 2) Saving histories on the fly: Is there a .Rhistory equivalent to >save.image() ? I would like to be able to save the
2006 Mar 16
1
autoloading .RData files / .Rhistory file
NOTE: WinXP, R2.2.0 All, a while back I posted a question about using relative filereferencing. The responses have allowed me to successfully set up the following directory structure: ...\data\raw ...\data\derived ...\prog ...\lst ...\log In the \prog directory I have put an RGui.exe shortcut and "pointed it" at \prog as the "Start In" location. In the same
1999 Jun 14
1
readline/history size (PR#211)
Full_Name: Russell Senior Version: 0.64.0 OS: linux-2.2.x Submission from: (NULL) (198.107.133.11) It appears that the GNU readline history size is limited to 50 entries. This is apparently occurring because R is not bothering to override the readline default value (from readline-4.0): ./history.c:59:#define DEFAULT_HISTORY_GROW_SIZE 50 It appears that it ought to be possible to override
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 Dec 09
3
.Rhistory in R.app
Dear R users, I am having a minor but annoying issue with R.app. It doesn't retain the history information from the previous sessions. By "history," I mean a record of commands/functions entered into R rather than the list of objects--that is properly recorded in the .Rdata file as well as in a workspace file I save separately. System details: R version 2.9.0 R.app GUI 1.28 Mac OS
2001 Sep 08
1
.Rhistory
It seems that when I choose not to save the workspace, R then chooses not to update the command history saved in the file .Rhistory. I can see a rationale for this, but I find it annoying; I might well want to be able to get at previous commands, even if I don't want to keep the objects created by these commands. Is there anyway of changing this behaviour --- i.e. to get R to save the
2011 Apr 13
5
Clearing Console; of weeks of codes!
Dear All: I do see I have weeks of codes in my console when I check with my arrow up keys. I have been clearing them with Control L but it seems to clear it clear the screen temporally. I do see the previous codes again when I open R the next day, after quitting the session! Q: How do I clear this? Thanks; YA -- View this message in context:
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,
2017 Mar 03
1
Trouble installing packages when history mechanism is modified by user profile
I tried installing the 'ks' package from my interactive R session, it failed with the following Erreur dans .External2(C_loadhistory, file) : aucun m?canisme d'historique des commandes disponible Calls: <Anonymous> Ex?cution arr?t?e second line is french for "no command history mechanism available", fouth is "execution stopped". This does not happen when I
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
2006 Mar 24
1
R for MacOSX - History and command line problems
Hi! I have the following issues using "R for Mac OS X 2.2.1" (from the ppc-.dmg) on a Mac OS X 10.4.5: 1) The command history is never saved (automatically) to .Rhistory. (The file stays empty.) 2) If I save a history to some file via the "Save History" button, and I load it afterwards via "Load History", only the first entry of the saved History appears 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