View source: R/use_vignette_docker.R
use_vignette_docker | R Documentation |
Creates a vignette rmarkdown file demonstrates how to create a Docker/Singularity image from a container stored in Dockerhub.
use_vignette_docker(
package = names(get_description()),
docker_org = NULL,
docker_registry = "ghcr.io",
cont = construct_cont(cont = paste(docker_org, package, sep = "/"), default_registry =
docker_registry)[[1]],
title = "Docker/Singularity Containers",
vignette_index_entry = "docker",
save_dir = here::here(),
path = file.path(save_dir, "vignettes", "docker.Rmd"),
output = list(`BiocStyle::html_document` = list(md_extensions = "-autolink_bare_uris")),
port_in = 8787,
port_out = 8900,
force_new = FALSE,
show = FALSE,
verbose = TRUE
)
package |
R package name. |
docker_org |
Docker registry organization name.
Can simply be your registry username instead.
If |
docker_registry |
Docker container registry to push to. Options include:
|
cont |
Which Docker container to use on each OS
( |
title |
Title of vignette. |
vignette_index_entry |
Index entry of the vignette, which is used when creating the navigation bar in the pkgdown site. |
save_dir |
Directory to save the file to. |
path |
Path to the file. |
output |
Vignette output style. Defaults to html_document. |
port_in |
Port number to route into the docker container. See the Docker docs for further details. |
port_out |
Port number to route out of docker container. See the Docker docs for further details. |
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 vignette file.
path <- use_vignette_docker(package = "mypackage",
docker_org = "neurogenomics",
## use default save_dir in practice
save_dir = tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.