RStudio has more resources than R. How do I configure R so programs developed in RStudio run successfully in R?
I lead the data analysis group in a public health dept that is shifting toward R from SAS. We want to be able to develop programs in RStudio, and then run them from a command line (i.e., in batch mode in R).
I just found that pandoc is available in RStudio but not R. I am guessing that we may find other differences in the resources available or the default configurations, as we get deeper into this.
Is there some guide or trick to setting up R so that it will run any R program that runs successfully in RStudio? I am hoping there might be something we can put in the command line that runs an R script (i.e., with the Rscript command), like maybe a pointer to some config file that RStudio uses.
Ideally, the solution would be a process we can use each time we install new versions of R and RStudio, rather than a fix that only lasts until the next version of RStudio.
- I know that R can run anything that I run in RStudio, if only I add the right additional tools to R (like pandoc). I know that R can run pandoc, after I install pandoc somewhere that R can find it.
- We run all of this in Windows, both on our laptops and on the server. That is what our IT dept. supports.
- I have a group of SAS users who I am trying to transition to R. I need to:
- minimize the frustration and extra work that comes form the "surprises" they get when a script ran fine in RStudio does not run when they call it with R from a command line.
- minimize the times we have to install new things (like pandoc) on everyone's computer and on the server where R runs. To do that, we need to involve our corporation's IT group, who will run out of patience quickly if we pepper them with change requests at random intervals.