We are currently trying to productionize our R code. For this purpose we have used plumber to create rest API's and we are storing the model objects in the same location. We have created a docker where all libraries have been loaded.
We are running into error -
Error in gzfile(file, "rb") : cannot open the connection
Calls: readRDS -> gzfile
In addition: Warning message:
In gzfile(file, "rb") :
cannot open compressed file '/home/ubuntu/R_API/Anomaly_detection_model_object.rds', probable reason 'No such file or directory'
The aforementioned file is present in the location but this error is persisting.