Can you present an example?
Let's say I have a script a.R that includes:
a <- "This is a."
And now I call it from a terminal by using Rscript a.R. So if I understand correctly I need to use saveRDS(a, "rds_file.rds") and call readRDS("rds_file.rds") from RStudio?
This seems more complicated than just source("a.R"). 