Since you have posted on this category, I assume you are trying to run a job from a shiny app but I don't think this is going to work since, as far as I know, you can only use that function with a running RStudio session and that is not the case with apps running on shiny-server.
I believe that walk-around solution relies on launching the app from RStudio IDE and not directly from shiny-server, I have no experience with that kind of deployment (although I know some people use it) so I can't tell if is actually possible (or recommended).
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.