search for: readrds

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

2017 Aug 22
2
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...
2011 Dec 10
3
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]]
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
1
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
1
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...
2011 May 13
4
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...
2007 Aug 26
2
error message!
..., 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.yah...
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...
2018 Apr 22
1
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]]
2018 Apr 22
1
Problem reading RDS files
...mohammad moradi <mri.moradi at gmail.com> wrote: >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 > > [[alterna...
2017 Aug 23
1
How to benchmark speed of load/readRDS correctly
...wmiller [mailto:jdnewmil at dcn.davis.ca.us] > Gesendet: Dienstag, 22. August 2017 18:33 > An: J C Nash <profjcnash at gmail.com>; r-help at r-project.org; Felber Raphael > Agroscope <raphael.felber at agroscope.admin.ch> > Betreff: Re: [R] How to benchmark speed of load/readRDS correctly > > Caching happens, both within the operating system and within the C > standard library. Ostensibly the intent for those caches is to help > performance, but you are right that different low-level caching algorithms > can be a poor match for specific application level us...
2018 Apr 23
1
Problem reading RDS files
...rote: > >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 > > > > >...
2017 Jun 06
0
Error in readRDS(dest) SOLVED
On Wed, 31-May-2017 at 10:05AM -0400, Martin Morgan wrote: |> On 05/31/2017 04:38 AM, Patrick Connolly wrote: |> >When I check out those directories in a terminal, there's a big diffrence: |> > |> >With R-3.4.0 |> >~ > ll /tmp/RtmpFUhtpY |> >total 4 |> >drwxr-xr-x 2 hrapgc hrapgc 4096 May 31 10:45 downloaded_packages/ |>
2017 Aug 22
1
How to benchmark speed of load/readRDS correctly
Not convinced Jeff is completely right about this not concerning R, since I've found that the application language (R, perl, etc.) makes a difference in how files are accessed by/to OS. He is certainly correct that OS (and versions) are where the actual reading and writing happens, but sometimes the call to those can be inefficient. (Sorry, I've not got examples specifically for
2017 Aug 22
2
How to benchmark speed of load/readRDS correctly
Caching happens, both within the operating system and within the C standard library. Ostensibly the intent for those caches is to help performance, but you are right that different low-level caching algorithms can be a poor match for specific application level use cases such as copying files or parsing text syntax. However, the OS and even the specific file system drivers (e.g. ext4 on flash disk
2012 Jan 09
6
serializing recordedplot object
...s. This works fine for base R plots and ggplot2 plots, and also used to work for lattice plots. However somewhere in version 2.14 things stopped working for lattice plots. Here is an example: library(lattice); histogram(rnorm(100)); x <- recordPlot(); saveRDS(x, "myplot.rds"); y <- readRDS("myplot.rds"); print(y); Error: NULL value passed as symbol address printing x works fine, but printing y either gives an error or prints an empty page. The problem seems to be related to serializing the recordedplot object, which contains a lot of memory pointers. Any tips or workaround...
2018 Apr 20
1
Problem reading R files
...; Unfortunately, the online resources could not help. For example, all the solutions introduced in StackOverflow could not work for me. https://stackoverflow.com/questions/31128492/twitter-setup-t witter-oauth-failing *Moreover, in reading data from the current directory, the readRDS method sucks*. I got same error using import() in rio package. https://stackoverflow.com/questions/49908803/error-in-reading-files-in-r So, please let me know if you have some solution for the issues. Thanks for your consideration. Regards, Jack [[alternative HTML versio...
2018 Mar 22
2
exporting data to stata
Hi, I am new to R and I want to export data into Stata. Could somebody help with that? Thanks a lot. This is the code I am using: > setwd("D:/datasets/Seg-bcn/ESBD") > data1 <- readRDS("r17045_ESDB_Habitatges_BDD_V_1_0.rds") > library(foreign) > write.dta(data="data1", file = "D:/datasets/data1.dta") Error in write.dta(data = "data1", file = "D:/datasets/data1.dta") : The object "dataframe" must h...
2005 Nov 05
2
Problem with installing home-made package under Windoze.
...",repos=NULL,lib="L:/statdata/Rlib") the value of the ``lib'''' argument being a location in the LAN where I have write permission and which is accessible by the students. In the past this worked. Now when I try this I get the error message ``Error in .readRDS(pfile) : cannot read workspace version 167772160 written by R 512.2.2; need R 0.1.4 or newer'''' I experimented with other small locally built packages and got the same phenomenon. Then I tried installing a package from CRAN choosing to install ``aaMI'''' just b...