Hi,
I'm very new and unexperienced using R...
I intend to create a script (e.g. runALL.R) which calls in the correct order "script1.R", "script2.R", .... and executes one after the other.
Is that possible? And if yes, what is the code for that?
Thanks in advance,
Ivi
Welcome!
In general, the function for running a different script would be source()
.
So, if I understood your question correctly, you should be able to have an R script runALL.R
source(script1.R)
source(script2.R)
source(script3.R)
This sounds like you can create a package that would help solve multiple problems you might have with the strategy of sourcing files. Sourcing files WILL bite you in the long run.
There is this book that can help you with this:
That works and was what I intended - Thank you very much
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.