test_remote.Rd
Test remote execution
test_remote(host, stderr = TRUE, ...)
host | host structure to execute command on |
---|---|
stderr | should stderr be returned as well. |
TRUE
is remote execution is successful.
If unsuccessful, depends on the value of stderr
.
If stderr
= TRUE (default), this function will throw an error.
If stderr
= FALSE, this function will print a logger error and return FALSE.
# NOT RUN { # Localhost execution should always work good_host <- list(name = "localhost") test_remote(good_host) bad_host <- list(name = "bigbadwolf") if (!test_remote(bad_host, stderr = FALSE)) { print("Big Bad Wolf is a bad host.") } # }