I am running this from rstudio. I simply type those 2 commands (library() and jobRunScript() . in the console window of rstudio.
As it is, it is not related to rshiny. The script simply says "print('hello world'). So I am running jobRunScript, as described in the documentation, but it gives me an error. So I think that's a bug in jobRunScript.
If I open a new terminal, and run R, and then run jobRunScript(..) . it says
"RStudio not running",
which is also peculiar, because rstudio is running.