Helpers for managing a ubuntu droplets.
ubuntu_add_swap(
droplet,
user = "root",
keyfile = NULL,
ssh_passwd = NULL,
verbose = FALSE
)
ubuntu_install_r(
droplet,
user = "root",
keyfile = NULL,
ssh_passwd = NULL,
verbose = FALSE,
rprofile = "options(repos=c('CRAN'='https://cloud.r-project.org/'))"
)
ubuntu_install_rstudio(
droplet,
user = "rstudio",
password = "server",
version = "0.99.484",
keyfile = NULL,
ssh_passwd = NULL,
verbose = FALSE
)
ubuntu_install_shiny(
droplet,
version = "1.4.0.756",
user = "root",
keyfile = NULL,
ssh_passwd = NULL,
verbose = FALSE,
rprofile = "options(repos=c('CRAN'='https://cloud.r-project.org/'))"
)
ubuntu_apt_get_cran(
droplet,
user = "root",
keyfile = NULL,
ssh_passwd = NULL,
verbose = FALSE
)
ubuntu_apt_get_update(
droplet,
user = "root",
keyfile = NULL,
ssh_passwd = NULL,
verbose = FALSE
)
ubuntu_apt_get_install(
droplet,
...,
user = "root",
keyfile = NULL,
ssh_passwd = NULL,
verbose = FALSE
)
install_r_package(
droplet,
package,
repo = "https://cloud.r-project.org/",
user = "root",
keyfile = NULL,
ssh_passwd = NULL,
verbose = FALSE
)
install_github_r_package(
droplet,
package,
repo = "https://cloud.r-project.org/",
user = "root",
keyfile = NULL,
ssh_passwd = NULL,
verbose = FALSE
)
ubuntu_create_user(
droplet,
user,
password,
ssh_user = "root",
keyfile = NULL,
ssh_passwd = NULL,
verbose = FALSE
)
A droplet, or object that can be coerced to a droplet
by as.droplet
.
Username for non-root account.
Optional private key file.
Optional passphrase or callback function for authentication.
Refer to the ssh::ssh_connect
documentation for more
details.
If TRUE, will print command before executing it.
A character string that will be added to the .Rprofile
Password for non-root acount. Default: root
Version of rstudio to install.
Arguments to apt-get install.
Name of R package to install.
CRAN mirror to use.
(character) User account for ssh commands against droplet.
if (FALSE) {
d <- droplet_create()
d %>% ubuntu_add_swap()
d %>% ubuntu_apt_get_update()
d %>% ubuntu_install_r()
d %>% ubuntu_install_rstudio()
# Install libcurl, then build RCurl from source
d %>% ubuntu_apt_get_install("libcurl4-openssl-dev")
d %>% install_r_package("RCurl")
droplet_delete(d)
}