Run long code in Ubuntu VM

 Run the R code xxxx.R in background.

nohup Rscript xxxx.R > mon_script_$(date +%Y%m%d_%H%M).log 2>&1 & echo $!

It seems safer than running a backgound job in Rstudio-server


Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04