| safe_system | R Documentation |
Execute system command safely (no shell injection)
safe_system(
command,
args = character(),
allowed_commands = c("docker", "aws", "uname", "sysctl", "cat", "nproc"),
stdin = NULL,
stdout = "|",
stderr = "|",
...
)
command |
Command to execute (must be in whitelist) |
args |
Character vector of arguments |
allowed_commands |
Commands allowed to be executed |
stdin |
Optional input to pass to stdin |
... |
Additional arguments passed to processx::run() |
Result from processx::run()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.