Description Usage Arguments Note See Also Examples
One of the use cases for this function is to ensure that an R process is already running and not start another one accidentally.
1 2 | ps.grep.remote(grep.string, remote, stop.if.any = FALSE,
stop.if.none = FALSE, count.self = FALSE, ps.options = "aux")
|
grep.string |
String(s) to check for in |
remote |
Remote machine specification for ssh, in format such as |
stop.if.any |
Stop if any of |
stop.if.none |
Stop if none of |
count.self |
When |
ps.options |
Gives the ability to run different options to ps. |
This may not work on Windows.
1 2 3 4 5 6 | ## Not run:
# Check if Eclipse is running.
ps.grep.remote("Eclipse", remote = "")
# [1] TRUE
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.