Shiny Server won't read RDS file or load RData

Hi all. I have shiny server installed and working on a virtual machine. In my global.R file, I want to load an RDS file. In the log, the error I get is 'unknown input format.' I next decided to change the .rds file into an RData file. I am getting the error:

"Warning: file 'file.RData' has magic number 'versi'
  Use of save versions prior to 2 is deprecated
Error in load("file.RData") :
  bad restore file magic number (file may be corrupted) -- no data loaded"

I saved the .RData file on R version 4.0.0 and am using R version 3.6.3 on my virtual machine. Is there a way to fix this? Also is there a better way to store a large file (> 1GB) and load it into my shiny app? Any insight is appreciated. Thanks.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.