remote_config | R Documentation |
Provides a flexible generic framework for generating the shell commands to deploy daemons remotely.
remote_config(
command = NULL,
args = c("", "."),
rscript = "Rscript",
quote = FALSE
)
command |
the command used to effect the daemon launch on the remote
machine as a character string (e.g. |
args |
(optional) arguments passed to |
rscript |
[default "Rscript"] assumes the R executable is on the
search path. Replace with the full path of the Rscript executable on the
remote machine if necessary. If launching on Windows, |
quote |
[default FALSE] logical value whether or not to quote the
daemon launch command (not required for Slurm |
A list in the required format to be supplied to the remote
argument
of daemons()
or launch_remote()
.
ssh_config()
for SSH launch configurations, or cluster_config()
for cluster resource manager launch configurations.
# Slurm srun example
remote_config(
command = "srun",
args = c("--mem 512", "-n 1", "."),
rscript = file.path(R.home("bin"), "Rscript")
)
# SSH requires 'quote = TRUE'
remote_config(
command = "/usr/bin/ssh",
args = c("-fTp 22 10.75.32.90", "."),
quote = TRUE
)
# can be used to start local dameons with special configurations
remote_config(
command = "Rscript",
rscript = "--default-packages=NULL --vanilla"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.