I am a engineer newbie to R and have got a script which I have to run on linux, I searched alot but was not able to find a simple command to run the script on linux. I have to couple my engineering software with R so I need to run it also on linux.
My script name is myscipt.R and I want to use 2 cpus to run that script.
kindly help me with the startup.
best regards.
This works for me:
As an example, the following should produce a .csv file of a random generated matrix. I have always named this scripts with an ".R" extension, but I'm not sure that that is necessary.
The script to call (named "testscript.R") contains the following lines of code:
Then call this script in your console as illustrated above:
On my machine, this produces the "M.csv" document, which looks like this:
Also, a "testscript.Rout" file is produced giving the R console output:
Hope that explains it better.