What is the default environment for Plumber in Docker?

22 views Asked by At

I ran into an issue where I run the following at the top of my entrypoints.R file: load("some_file.Rdata") but the objects never seem to load. I made this endpoint to check for what is loaded and it comes back empty:

#* @serializer text
#* @get /objects
check_objects <- function(){
  capture.output(ls())
  
}

However, after some trial and error, when I save the objects as rds files and use the double-assignment operator, I now have access to them:

file <<- readRDS("some_file.Rds")

How do I determine which environment is being used so I can load() properly?

0

There are 0 answers