[R] Problem reading RDS files

mohammad moradi mr|@mor@d| @end|ng |rom gm@||@com
Mon Apr 23 07:50:59 CEST 2018


I've tried to re-experiment the tutorial presented at
http://www.rdatamining.com/docs/twitter-analysis-with-r and specifically
aimed to use rds files (tweet records) at http://www.rdatamining.com/data/.

On Sun, Apr 22, 2018 at 9:16 PM, Jeff Newmiller <jdnewmil using dcn.davis.ca.us>
wrote:

> 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.
>

	[[alternative HTML version deleted]]




More information about the R-help mailing list