Displaying 20 results from an estimated 9000 matches similar to: "Where does R store workspace and commands that load on startup"
2013 Mar 31
1
Storage of automatically loaded workspace and command files
When I close R and answer yes to save workspace, R automatically loads it and apparently also the command history at start up. I would like to know where R stores this information. I know that I can save .RData and .Rhistory files, but I would like to know how(where) R stores this information automatically. I have not found any .RData or .Rhistory files associated with start up.
I am running
2008 Dec 12
3
Make installed packages available to new R version
After installing a new version of R, how do I make the packages that I
have already installed and use on the old version available to the new
version?
Thank you,
Roy Robertson
2014 Apr 02
1
inconsistent error messages on Mac OS X
Hi All,
I am one of the contributors to the FastR project (
https://bitbucket.org/allr <https://bitbucket.org/allr.>) and I have
encountered an interesting issue when trying to implement vector accesses
within FastR. I am trying to understand what kind of error message should
be generated for the following expression:
x<-1:4; x[[1]]<-NULL; x
In order to determine the error message,
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
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
2011 Sep 13
1
ESS: Viewing Restored Workspace At Startup
I use ESS and have no problems invoking it when I fire up emacs. When it
loads it tells me, [Previously saved workspace restored]. However, I do not
know how to view that history of commands so I can continue what I was
doing.
Since the buffer begins with ESS, what do I do to view that restored
workspace?
TIA,
Rich
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
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
1999 Feb 23
2
rw0632 makes stray .Rhistory orphans
If you start Rterm/Rgui from the cmd (NT4.4) command line, the .Rhistory and
.RData files are created/used in the current directory.
I think, R should honor HOME or even the USERPROFILE variable.
Regards
Karl
PS: is this the correct list for such reports or would it be better to use
r-devel?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list --
1999 Feb 23
2
rw0632 makes stray .Rhistory orphans
If you start Rterm/Rgui from the cmd (NT4.4) command line, the .Rhistory and
.RData files are created/used in the current directory.
I think, R should honor HOME or even the USERPROFILE variable.
Regards
Karl
PS: is this the correct list for such reports or would it be better to use
r-devel?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list --
2010 Nov 14
3
How to permanently remove [Previously saved workspace restored]
Win 7 64 bit
R version 2.11.1 (2010-05-31)
How to permanently remove;
[Previously saved workspace restored]
> rm (list = ls( ))
On next start it still displays;
.....
[Previously saved workspace restored]
There is a file keeping the previous data on Linux
.Rdata
How about on Windows?
TIA
B.R.
Stephen L
2000 Jun 19
1
Up-arrow on rw1010
A quick summary. The reported problem appears to be with (some) previous
histories. If you find that neither up arrow nor ctrl-P work in the Rgui
console, please delete .Rhistory and try again.
We don't know the exact cause, and nothing I can think of can reproduce
this. I have no problem taking histories made with rw1001 and reading them
in rw1010 and vice versa.
If the .Rhistory is really
2003 Nov 20
1
Hidden Rhistory files
Hi all,
I've ecountered a problem in the last few days with my .Rhistory file
not being able to be updated when I quit an R session because its file
attributes under Windows have been set as "Hidden". Recently, I put the
following line in my global Rprofile file:-
history(max.show=Inf)
so that I automatically open the entire history file for a project when
I begin a session, but I
2017 Oct 25
1
How to save and restore a workspace
Saving your workspace means that the variables you currently have defined in your session [ everything that shows up when you type ls() ] are saved to a file, by default named ?.RData?. To restore the workspace, you use the ?Load Workspace? command and navigate to the (same) .RData file. Its default location for Windows, as far as I know, is your ?Documents? folder. So look there.
I see that you
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) :
2004 Feb 03
2
Prompt / Console problem
Hi,
I have R installed under a Mandrake linux system and I don't have shell
utilities any more under my R console such as completion when writing a
file path, back and forth in the history, bindkeys... Moreover when I
quit R by saving, no .Rhistory file is created while the .Rdata is. I
don't get how this work, I thought it was based on the user unix shell
but it does not seem.
Any
2011 Jan 20
1
Question on RData and Rhistory extentions
Hi,
It seems simple but I could not find the solution on the R site.
I can't save properly ".RData" and ".Rhistory" in Windows 7 folders. I get
files with no extension.
Thanks in advance for your help.
JP
Jean-Philippe Puyravaud
9A Frederic Osanam Street
Colas Nagar
Puducherry 605001
E-mail: <mailto:jp.puyravaud@gmail.com>
2020 Oct 26
4
securing R code....
dear members,
I am a stock trader. I am using R for my research.
I want to service my laptop, wherein resides all my R code, which, for obvious reasons, has to be secured. I am using Windows 7 Ultimate.
I cannot encrypt the R data by Bitdefender, as it encrypts the entire drive. I anyway need to give the key when the system, if at all, gets locked when servicing.
My
2006 Feb 06
1
Error in fun(...) : couldn't find function "assignInNamespace"
I started my laptop, opened a shell and get this error message:
R : Copyright 2005, The R Foundation for Statistical Computing
Version 2.2.1 (2005-12-20 r36812)
ISBN 3-900051-07-0
lines deleted
Error in fun(...) : couldn't find function "assignInNamespace"
Error: .onLoad failed in 'loadNamespace' for 'Matrix'
Fatal error: unable to restore saved data in .RData
2008 Jan 21
1
Problems saving the workspace image
Hi!
I use R with Windows for a long time. In the last week I change to Windows
Vista. Now I can´t save the workspace image when I exit R. The system
presents the following message “Unable to open .Rhistory”. Does anyone can
help me?
I thank you in advance,
Ana
[[alternative HTML version deleted]]