rstudio - is it possible to run a code in the background

前端 未结 4 1178
无人及你
无人及你 2021-02-03 23:09

Question regarding RStudio. Suppose I am running a code in the console:

> code1()

assume that code1() prints nothing on the con

4条回答
  •  后悔当初
    2021-02-04 00:04

    You can always do this, which is not ideal but works for most purposes:

    shell(cmd = 'Rscript.exe some_script.R', wait=FALSE)
    

提交回复
热议问题