[Solved] Running jobs in background in R


What would help is to output it to a file when you have computed it and then parse that file everytime you open R. Write yourself a computeMatrix() function or script to produce a file with the matrix stored in a sensible format. Also write yourself a loadMatrix() function or script to read in that file and load the matrix into memory for use, then call or run loadMatrix everytime you start R and want to use the matrix.

In terms of running an R job in the background, you can run an R script from the command line with the syntax “R CMD BATCH scriptName” with scriptName replaced by the name of your script.

5

solved Running jobs in background in R