Question regarding RStudio. Suppose I am running a code in the console:
> code1()
assume that code1() prints nothing on the con
code1()
You can always do this, which is not ideal but works for most purposes:
shell(cmd = 'Rscript.exe some_script.R', wait=FALSE)