I'm experiencing some problems with executing R scripts in my snakemake workflow. It seems that my personal .Rprofile is loaded inside the R script. The job is run inside a singularity container and the problem is that I automatically load some packages in my R profile that are not installed in the container. I could of course solve this by editing my R profile but everybody else who wants to use the pipeline would have to do the same which is something I don't like. Does anybody have an idea how to solve this otherwise?
Thanks!