I have a docker container with R 3.6.3 installed. I would need certain packages preloaded and execute a set of R scripts each time a R session is initialized inside the container. Is there a work around for this? I tried keeping a ".Rprofile" (with R package import lines and R scripts) at home directory and expected to have them whenever I start a R session.
COPY /.Rprofile ./home/docker/.Rprofile
COPY /Rprofile.site ./usr/local/lib/R/etc/Rprofile.site