Rscript --no-save --no-restore --verbose myRfile.R > outputFile.Rout 2> errorFile.Rout
To put the output and error in the same file (assuming sh/bash)
Rscript --no-save --no-restore --verbose myRfile.R > outputFile.Rout 2>&1
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…