search for: readrds

Displaying 20 results from an estimated 117 matches for "readrds".

Did you mean: readfds
2011 Oct 18
9
readRDS and saveRDS
Hi all, Is there any chance that readRDS and saveRDS might one day become read.rds and write.rds? That would make them more consistent with the other reading and writing functions. Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/
2018 Apr 02
3
recordPlot/replayPlot not working with saveRDS/readRDS
The documentation for recordPlot says the following: > As of R 3.3.0, it is possible (again) to replay a plot from another R session using, for example, saveRDS and readRDS. However, I haven't been able to save and restore a plot displaylist and have it work within the same R session, using R 3.4.3 or 3.3.3. Here's an example: # Save displaylist for a simple plot png('test.png') dev.control(displaylist ="enable") plot(1:5, 1:5) r <- reco...
2011 Dec 10
2
install.packages readRDS error
Hi, I am running Ubuntu 10.10 and I have just installed R 2.14.0. When I try to install a package: install.packages("SPOT") it returns an error message: "Error in readRDS(file) : error reading from the connection". Also, when I try the command in R: update.packages(), it returns the same error message described previously. Any ideas? Regards, Monica [[alternative HTML version deleted]]
2012 Sep 15
2
Risk of readRDS() not detecting race conditions with parallel saveRDS()?
...ore knowledge could give me some feedback; Consider two R processes running in parallel on the same unknown file system. Both of them write and read to the same RDS file foo.rds (without compression) at random times using saveRDS(object, file="foo.rds", compress=FALSE) and object2 <- readRDS(file="foo.rds"). This happens frequently enough such that there is a risk for the two processes to write to the same "foo.rds" file at the same time (here one needs to acknowledge that file updates are not atomic nor instant). To simulate the event that two processes writes to...
2011 May 13
1
RProfmem output format
Hi all, When I run the example in RProfmem, I get: Rprofmem("Rprofmem.out", threshold=1000) example(glm) Rprofmem(NULL) noquote(readLines("Rprofmem.out", n=5)) ... [1] 1384 :5416 :5416 :1064 :1064 :"readRDS" "index.search" "example" [2] 1064 :"readRDS" "index.search" "example" [3] 4712 :"readRDS" "index.search" "example" [4] 4712 :"readRDS" "index.search" "example" [5] 1064 :"readRDS...
2018 Apr 03
1
[FORGED] recordPlot/replayPlot not working with saveRDS/readRDS
>>>>> Paul Murrell <paul at stat.auckland.ac.nz> >>>>> on Tue, 3 Apr 2018 09:41:56 +1200 writes: > Hi What you are doing "wrong" is loading a recordedplot > into the same session that it was created in. The > saveRDS()/readRDS() works if you save in one R session and > then read in a different R session. The assumption is > that if you are still in the same session that created the > recordedplot you still have the recordedplot (e.g., you > can just do replayPlot(r) instead of replayPlot(r2)....
2009 Apr 16
1
Error in .readRDS(nsInfoFilePath) : unknown input format (PR#13659)
...#39; for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. Error in .readRDS(nsInfoFilePath) : unknown input format Or with installing Packages: >update.packages(ask='graphics') Error in .readRDS(nsInfoFilePath) : unknown input format
2017 Aug 09
1
Problem with serialization via readRDS() on a textConnection()
...accidentally deleted the original copy of your message.) Your code > zz = textConnection('tempConnection', 'wb') > saveRDS(c("a", "b", "c"), zz, ascii = TRUE) > serialized_obj = paste(textConnectionValue(zz), collapse='\n') > readRDS(textConnection(serialized_obj)) Error in gzcon(file) : 'read' not enabled for this connection has one problem: textConnectionValue(zz) may not be the complete text because zz hasn't been closed. You should close(zz), then get the result from the variable tempConnection. However, t...
2017 Aug 22
4
How to benchmark speed of load/readRDS correctly
Dear all I was thinking about efficient reading data into R and tried several ways to test if load(file.Rdata) or readRDS(file.rds) is faster. The files file.Rdata and file.rds contain the same data, the first created with save(d, ' file.Rdata', compress=F) and the second with saveRDS(d, ' file.rds', compress=F). First I used the function microbenchmark() and was a astonished about the max value of th...
2018 Apr 22
2
Problem reading RDS files
Hi there, I faced a weird problem doing a seemingly simple task in R. Specifically, when trying for reading an RDS file from the working directory, the following error is appeared. Code: records <- readRDS("tweets.rds") Error: Error in readRDS("tweets.rds") : error reading from connection In addition: Warning message: In readRDS("tweets.rds") : invalid or incomplete compressed data Thanks, Mohammad [[alternative HTML version deleted]]
2012 Jul 29
1
readRDS, In as.double.xts(fishReport$count) : NAs introduced by coercion
Hello, I looked in the R-help but could not find an archive addressing the following. I would like to convert a character to numeric after reading a file with RDS extension. After using as.numeric, I checked if it is numeric. It was not converted. Please help. Here is my code >Report <- readRDS(file="RDS/Report.RDS") > Report[1:2,] dive_id date time species count size 2008-08-06 08:49:00 " 1" "08/06/2008" "8:49:00" "S. OYT" "15" "6" 2008-08-06 08:49:00 " 1"...
2018 Apr 02
0
[FORGED] recordPlot/replayPlot not working with saveRDS/readRDS
Hi What you are doing "wrong" is loading a recordedplot into the same session that it was created in. The saveRDS()/readRDS() works if you save in one R session and then read in a different R session. The assumption is that if you are still in the same session that created the recordedplot you still have the recordedplot (e.g., you can just do replayPlot(r) instead of replayPlot(r2). Is that a bad assumption ? Pa...
2023 Nov 15
1
saveRDS()/readRDS() on environments
Dear r-devel, I was surprised to see that saveRDS() and readRDS() work quite well with environments, see below: ``` z <- 3 # in global env y <- new.env() y$a <- 1 x <- new.env(parent = y) x$b <- 2 saveRDS(x, "x.RDS") # in a new session x <- readRDS("x.RDS") y <- parent.env(x) x$b #> [1] 2 y$a #> [1] 1 parent.env(...
2017 Aug 22
0
How to benchmark speed of load/readRDS correctly
...4 33 14 4 6 41 4 47 4 22 Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Aug 22, 2017 at 5:53 AM, <raphael.felber at agroscope.admin.ch> wrote: > Dear all > > I was thinking about efficient reading data into R and tried several ways > to test if load(file.Rdata) or readRDS(file.rds) is faster. The files > file.Rdata and file.rds contain the same data, the first created with > save(d, ' file.Rdata', compress=F) and the second with saveRDS(d, ' > file.rds', compress=F). > > First I used the function microbenchmark() and was a astonished a...
2017 Aug 22
1
How to benchmark speed of load/readRDS correctly
...p > TIBCO Software > wdunlap tibco.com > > On Tue, Aug 22, 2017 at 5:53 AM, <raphael.felber at agroscope.admin.ch> > wrote: > >> Dear all >> >> I was thinking about efficient reading data into R and tried several ways >> to test if load(file.Rdata) or readRDS(file.rds) is faster. The files >> file.Rdata and file.rds contain the same data, the first created with >> save(d, ' file.Rdata', compress=F) and the second with saveRDS(d, ' >> file.rds', compress=F). >> >> First I used the function microbenchmark() an...
2017 Aug 22
0
How to benchmark speed of load/readRDS correctly
...system. This question is not about R. -- Sent from my phone. Please excuse my brevity. On August 22, 2017 5:53:09 AM PDT, raphael.felber at agroscope.admin.ch wrote: >Dear all > >I was thinking about efficient reading data into R and tried several >ways to test if load(file.Rdata) or readRDS(file.rds) is faster. The >files file.Rdata and file.rds contain the same data, the first created >with save(d, ' file.Rdata', compress=F) and the second with saveRDS(d, >' file.rds', compress=F). > >First I used the function microbenchmark() and was a astonished about...
2009 Apr 16
0
Error in .readRDS(nsInfoFilePath) : unknown input format (PR#13660)
...'citation()' on how to cite R or R packages in publications. > > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > > Error in .readRDS(nsInfoFilePath) : unknown input format > > > Or with installing Packages: > >update.packages(ask='graphics') > Error in .readRDS(nsInfoFilePath) : unknown input format > > ______________________________________________ > R-devel at r-project.org mailing l...
2017 Aug 08
0
Problem with serialization via readRDS() on a textConnection()
...ls. Here is the code in question (simplified), and the resulting error: > zz = textConnection('tempConnection', 'wb') > saveRDS(c("a", "b", "c"), zz, ascii = TRUE) > serialized_obj = paste(textConnectionValue(zz), collapse='\n') > readRDS(textConnection(serialized_obj)) Error in gzcon(file) : 'read' not enabled for this connection Docs haven't been much help in this case. I've tried a number of variations but no luck. readRDS() was updated in v3.4.1, but I'm hesitant to call this a bug without intimate knowledg...
2007 Aug 26
2
error message!
...ar R-users, Can some one help me out. I tried installing some packages in R_2.5.1 but I get an error message as shown below. This is unusual since I have been installing and updatings packages in the same version of R. > chooseCRANmirror() > update.packages(ask='graphics') Error in .readRDS(pfile) : unknown input format or > utils:::menuInstallPkgs() Error in .readRDS(pfile) : unknown input format Thanks usman ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/f...
2009 Mar 12
0
help.search(): "Error in .readRDS(hs_file) : error reading from connection" (PR#13591)
...86_64 x86_64 x86_64 GNU/Linux Submission from: (NULL) (206.86.87.3) I have resolved the problem, but this is a possible regression to a problem listed in the bug fixes for 2.3.1. After a new installation, help.search() on any search string without a package restriction issued: "Error in .readRDS(hs_file) : error reading from connection" With a package restriction, it would work fine. (See two probable but not directly observed exceptions below.) I installed 2.8.1 from an RPM from CRAN. While installing additional packages, my installation crashed due to me underestimating the requ...