'Error in readRDS(ffile) : error reading from connection' ggplot only

Every time I run my code for ggplot I'm getting this error:

Error in readRDS(ffile) : error reading from connection

All other packages seem to be working fine so I think its to do with ggplot. Files paths and working directory all fine and tried updating ggplot but nothing is working and can't find anything online!

Hi, and welcome!

Please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers.

readRDS() opens a file in the serialized rds format, usually containing data. It has nothing to do directly with ggplot2.

The first thing to do is to confirm that ffile is in your working directory:

dir()

If you don't see the file, that error message would appear.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.