View source: R/use_codespace.R
use_codespace | R Documentation |
Generate a dev container config file to set up a GitHub Codespace.
use_codespace(
template = "devcontainer.json",
image = "ghcr.io/neurogenomics/rworkflows:dev",
features = list(`ghcr.io/devcontainers/features/conda:1` = list()),
customizations = list(vscode = list(settings = list(), extensions =
list("reditorsupport.r", "visualstudioexptteam.vscodeintellicode",
"ionutvmi.path-autocomplete"))),
save_dir = here::here(".devcontainer"),
path = file.path(save_dir, template),
force_new = FALSE,
show = FALSE,
verbose = TRUE
)
template |
Dev container config template to use. |
image |
Base Docker image to use for the Codespace. |
features |
Named list of features to add to the Codespace. See here for details. |
customizations |
Named list of customizations to add to the Codespace. See here for details. |
save_dir |
Directory to save the file to. |
path |
Path to the file. |
force_new |
If the file already exists, overwrite it
(default: |
show |
Print the contents of the file in the R console. |
verbose |
Print messages. |
Path to dev container config file.
path <- use_codespace(save_dir=tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.