ShinyAppsIO - cannot open an Rdata file

I am getting the following error when I publish my app (which comprises an app.R file and a ONS_data.Rdata file). But when I download the TAR file from ShinyAppsIO, I can see and open the Rdata file.

An error has occurred

The application failed to start (exited with code 1).

Warning in readChar(con, 5L, useBytes = TRUE) : cannot open compressed file 'ONS_data.rdata', probable reason 'No such file or directory' Error in value[[3L]](cond) : cannot open the connection Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted

2 Likes

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.

The error is fairly clear: wherever ONS_data.Rdata is, it's not in the working directory. But how to fix it isn't without knowing where in the program the message comes from. So that's the first step. (I'm not a bright shiny object myself, so for all I know it may not even be possible to work with .Rdata objects in shiny, but won't be able to find out without more to go on.)

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