[R] Problem reading RDS files

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Sun Apr 22 18:46:51 CEST 2018


Wouldn't the obvious problem be that your data file is corrupted or was never created  using saveRDS in the first place? Can you show us a complete example of creating and attempting to read what was just created? 

On April 22, 2018 10:20:05 AM CDT, mohammad moradi <mri.moradi using 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
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.




More information about the R-help mailing list