I am new to R and I am trying to make a standalone executable so that my scripts can be run without development tools. I have created multiple R scripts containing different fun
After help from @r2evans I have managed to find a solution to the problem.
My main.r
file was just a bunch of function calls with no function wrapping them. So I wrapped the function calls in a function and the function now looks as follows:
mainFunction <- function() {
source("R/initSetup.r")
initSetup()
...
}
initSetup.r
contains more source()
calls to the other files that I use. The program is then run using the command mainFunction() in the R console