Displaying 20 results from an estimated 5000 matches similar to: "Error in .readRDS(nsInfoFilePath) : unknown input format (PR#13659)"
2009 Apr 16
0
Error in .readRDS(nsInfoFilePath) : unknown input format (PR#13660)
On 4/16/2009 4:50 AM, j.w.a.jansen at uu.nl wrote:
> Full_Name: Jeroen Jansen
> Version: 2.7.2
> OS: Windows XP Pro
> Submission from: (NULL) (131.211.169.89)
>
>
> Allready with startup I get error message:
> R version 2.7.2 (2008-08-25)
That version is not current, but it looks to me as though you've
corrupted a file on your system. It would be named
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
2012 Sep 15
2
Risk of readRDS() not detecting race conditions with parallel saveRDS()?
I hardly know anything about the format used in (non-compressed)
serialization/RDS, but hoping someone with more 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
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
2017 Aug 09
1
Problem with serialization via readRDS() on a textConnection()
(Sorry for not linking to your message; I 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
2017 Aug 22
0
How to benchmark speed of load/readRDS correctly
The large value for maximum time may be due to garbage collection, which
happens periodically. E.g., try the following, where the
unlist(as.list()) creates a lot of garbage. I get a very large time every
102 or 51 iterations and a moderately large time more often
mb <- microbenchmark::microbenchmark({ x <- as.list(sin(1:5e5)); x <-
unlist(x) / cos(1:5e5) ; sum(x) }, times=1000)
2017 Aug 22
1
How to benchmark speed of load/readRDS correctly
Note that if you force a garbage collection each iteration the times are
more stable. However, on the average it is faster to let the garbage
collector decide when to leap into action.
mb_gc <- microbenchmark::microbenchmark(gc(), { x <- as.list(sin(1:5e5)); x
<- unlist(x) / cos(1:5e5) ; sum(x) }, times=1000,
control=list(order="inorder"))
with(mb_gc,
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
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
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
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/
2017 Aug 23
1
How to benchmark speed of load/readRDS correctly
Hi there
Thanks for your answers. I didn't expect that this would be so complex. Honestly, I don't understand everything you wrote since I'm not an IT specialist. But I read something that reading *.rds files is faster than loading *.Rdata and I wanted to proof that for my system and R version. But thanks anyway for your time.
Cheers Raphael
> -----Urspr?ngliche Nachricht-----
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
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(y)
#> <environment:
2017 Aug 22
0
How to benchmark speed of load/readRDS correctly
You need to study how reading files works in your operating 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
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
2017 Aug 08
0
Problem with serialization via readRDS() on a textConnection()
Hi All,
I had working code under R v3.2 that serialized an object, stored the
serialized object in a database, and then successfully retrieved and
hydrated that object.
I recently updated to R v3.4.1 and the same code now fails.
Here is the code in question (simplified), and the resulting error:
> zz = textConnection('tempConnection', 'wb')
> saveRDS(c("a",
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
2014 Dec 05
2
errors with GeForce GTX 650 Ti and 3 monitors
There were fixes in 3.17 that were supposed to help this, but
apparently they didn't help enough. See
https://bugs.freedesktop.org/show_bug.cgi?id=72180 -- basically some
sort of card setup failure on our part is causing our ctxsw to die,
but nvidia's appears to be more resilient to the screwups.
On Fri, Dec 5, 2014 at 1:16 PM, Rob Jansen <rob.g.jansen at nrl.navy.mil> wrote:
>
2007 Aug 26
2
error message!
Dear 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) :