meztez / plumberDeploy

Other
53 stars 13 forks source link

`do_provision()` updates #6

Closed schloerke closed 4 years ago

schloerke commented 4 years ago

Have validated with this PR that do_provision(unstable = TRUE) produces a working droplet and working plumber api.

muschellij2 commented 4 years ago

Do we actually call any ssh:: functions?

schloerke commented 4 years ago

Not directly. But analogsea does, which it only suggests. plumberDeploy calls analogsea::droplet_ssh

❯❯ analogsea::droplet_ssh
function (droplet, ..., user = "root", keyfile = NULL, ssh_passwd = NULL,
    verbose = FALSE)
{
    check_for_a_pkg("ssh")
....

❯❯ analogsea:::check_for_a_pkg
function (x)
{
    if (!requireNamespace(x, quietly = TRUE)) {
        stop("Please install ", x, call. = FALSE)
    }
    else {
        invisible(TRUE)
    }
}
<bytecode: 0x7fd57323f3a8>
<environment: namespace:analogsea>
❯❯ packageDescription("analogsea")$Suggests
[1] "testthat, knitr, ssh (>= 0.6), aws.s3"