similar to: how to save the R script itself into a rData file?

Displaying 20 results from an estimated 10000 matches similar to: "how to save the R script itself into a rData file?"

2007 Aug 23
3
RData File Specification?
Hi, I am developing a tool for converting a large data frame stored in an uncompressed binary (XDR) RData file to a delimited text file. The data frame is too large to load() and extract rows from on a typical PC. I'm looking to parse through the file and extract individual entries without loading the whole thing into memory. In terms of some C source functions, instead of doing
2003 Sep 24
1
using assign on save?
I have an object which I want to save into an external file, using save, on a time step in loop. In the loop I have an if statment that will save when the appropraite time, t, is reached. I want to change the object and the name of the saved object to reflect which time step is being written. I can do the file name in save using paste but cannot rename the object. For example, I want to save
2005 Apr 07
2
Zipping Rdata Files
Saving Rdata files in a zip archive form can in some cases save a considerable amount of disk space. R has the zip.file.extract function to extract files from zip archives, but appears not to have any corresponding function to save in zipped form. (At least I have not been able to find anything in the help files or through searching the mail archives.) The system function can be used to call gzip
2018 Jan 26
0
Problem saving .RData file with save.image
I am running R-3.0.3 on RStudio 1.1.183. I have recently gotten the following error message while saving an .RData file with the save.image command. I have not had this problem until recently. Help appreciated. === Error in save.image("bope1a.RData") : image could not be renamed and is left in bope1a.RDataTmp [[alternative HTML version deleted]]
2005 Feb 01
1
RData loading weirdness
I've just had an interesting thing happen to one of our students. He's using R 1.9.1 on Linux, and so I dont expect bugfixes, I'm just reporting this out of interest in case anyone else has had this happen. Starting R caused a seg fault shortly after "[Previously saved workspace restored]". Running "R --no-restore-data" worked fine so I suspected a corrupted
2005 Feb 01
1
RData loading weirdness
I've just had an interesting thing happen to one of our students. He's using R 1.9.1 on Linux, and so I dont expect bugfixes, I'm just reporting this out of interest in case anyone else has had this happen. Starting R caused a seg fault shortly after "[Previously saved workspace restored]". Running "R --no-restore-data" worked fine so I suspected a corrupted
2012 Jul 19
2
change file name from file0.1_data.RData to file1_data.Rdata
Dear All, I want to change file names. I have file0.1_data.RData (I have several files whose names are file0.x_data.Rdata) I want to rename it to file1_data.RData How can I do it? Thank you for saving my time! [[alternative HTML version deleted]]
2011 Jan 05
1
RData size
Hi, I noticed a Rdata size issue that's puzzling to me. Attached find 2 example datasets in text file. Both are 100x5, so the sizes for both text file are the same. However, when I read them into R, the sizes are much different: tt<-as.matrix(read.table("tt.txt",header=T,row.names=1)) save(tt,file='tt.RData')
2010 Jul 08
2
Loading .Rdata within an R function
Colleagues: I am having trouble loading data from within .Rdata file within the environment of a function. That is, the following always loads to the global environment: f1 <- function() { load("mydata.Rdata") # compute with objects from mydata.Rdata. } I wish to load mydata.Rdata only within the function f1. Perhaps I have misunderstood
2004 Jun 17
1
problem with restore and some .RData
Hi, I have problem with the restore function in some .RData using R 1.9.0 Look the error: [ronaldo at zeus RAnalise]$ R ... Error: object 'family' not found whilst loading namespace 'MASS' Fatal error: unable to restore saved data in .RData But if I load this .RData with the load() function all objects are recovered. [ronaldo at zeus RAnalise]$ R --no-restore-data ... > ls()
2012 Mar 07
4
add data from .RData file
I got two .RData file e.g data.2005.RData & data.2006.RData I would like to combine these two different data set and make single RData file. in both file there are some NULL files are also available and I would like to clear this NULL files also. $ : NULL $ : NULL $ : num [1:43285, 1:8] -21.1 -21.1 -24.9 -24.9 -24.9 ... ..- attr(*, "dimnames")=List of 2 .. ..$ : NULL ..
2005 Jan 30
1
S4 packages and .Rdata file.
Dear developers. Have spend just 1 h searching for a bug in a new version of a new version of a package. I was getting a segfault all the time. "Funny" thing - there was no error neither in the S nor in the C code. To solve the problem I had to delete the .Rdata file! What I observed. If the .Rdata file was generated while a previous release of a package was installed in the
2003 Feb 06
2
.Rprofile, .Rfirst, and .Rdata
Hi all, After a short hiatus away from R I have found that it's changed a bit. I used to keep a definition of .First in .Rprofile that did a couple of things on startup (load a couple of libraries). Now, I've discovered that when I change the definition of .First in .Rprofile it doesn't change anything when I start up, because .First is held over in .Rdata from the last session.
2006 Nov 17
2
Getting R and .Rdata together again
Somehow, I've managed to have my .Rdata files become `disassociated' from the R program. I am running Windows XP Pro. I have re-installed R 2.4 in an attempt to have it re-associate itself with .Rdata files, but to no avail. .Rdata files are now associated with a file compression program or alternatively with Rgui.exe. .Rdata files are represented by the blue R, but double-clicking on
2012 Apr 17
1
Problem accessing .Rdata objects in a loop
Hi, I am trying to access many .Rdata objects and do some operations with them using a loop. I can load the files but can't access them. The files' names are stored in a character vector called "names". After loading the objects, I can view each one using ls() and see that two objects are present for each. I am trying to access the one with the name which is the same as the
2004 Dec 28
3
lost association for .RData files
Somehow I have lost the correct file association for .RData files. They are now associated with a text file editor. When I right click on any .RData file and try to change the association, R is not listed as a choice of program. I browse to c:\Program Files\R\rw2001\bin\Rgui.exe and select that file to open .RData, but Windows does not then place Rgui.exe in the list of programs to use. I can
2006 Oct 12
1
.RData and UNIX
Hi, I have been using R under Windows but have started to use R (ver. 2.3.0,) under Linux (linux-gnu). I have been saving my workspace and I notice that I sometimes end up with 2 version of the .RData file: .RData and .Rdata. Can someone explain what is happening? I am not sure which one is loaded so I have ended up losing data by deleting the wrong file. I think the saved file should be
2017 Oct 07
0
load() failed to load .Rdata file in AWS-Ububtu
Hi Christofer, The directory /srv/shiny-server would normally be owned by the root user. Your options would seem to be to either (1) bring up the R session as root (dangerous) or (2) try copying the file to your local directory and read it from there (if allowed). e.g. from the Unix shell: > cd ~ (i.e. cd to your home directory) > cp /srv/shiny-server/Dat.Rdata . (Note the '.' at
2018 Jan 16
0
Merging RData files
On 16/01/2018 6:33 AM, Steven Yen wrote: > Hi all, > This is great. Again, here is what I need. I run two separate jobs (a.R > and b.R) with results (say regression outputs) going to a.RData and > b.RData. I like to put all results in one place (where I can retrieve > them in one place, ab.RData). The following codes do it (I am not sure > if line 2 is needed but I am happy).
2001 May 16
1
Reading .RData Fails
Hi, We have a user reporting the following problem > % R > > R : Copyright 2001, The R Development Core Team > Version 1.2.3 (2001-04-26) > > R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under certain conditions. > Type `license()' or `licence()' for distribution details. > > R is a collaborative project