get_Rscript_PID | R Documentation |
Returns a vector with the process ID (pid) of the "Rscript" processes which are currently running.
get_Rscript_PID(...)
... |
not used. |
an integer vector with the process ID (pid) of the "Rscript" processes.
tasklist details from microsoft homepage: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb491010(v=technet.10)
get_tasklist
, get_Rscript_PID
, get_pid
,
kill_pid
, kill_all_Rscript_s
, pskill
## Not run:
# create several running processes of Rscript (to shitdown)
system("Rscript -e repeat{2+2}", wait = FALSE) # this process should be stuck
system("Rscript -e repeat{2+2}", wait = FALSE) # this process should be stuck
# here are there pid numbers:
get_Rscript_PID()
# let's kill them:
kill_all_Rscript_s()
# they are gone...
get_Rscript_PID() # we no longer have Rscripts running
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.