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
)
R package name.
Docker registry organization name.
Can simply be your registry username instead.
If NULL
, docker_org
will be inferred as the R package's GitHub
owner.
Docker container registry to push to. Options include:
Which Docker container to use on each OS
(NULL
means no container will be used for that OS).
See
here
for a list of all official Bioconductor Docker container versions.
Title of vignette.
Index entry of the vignette, which is used when creating the navigation bar in the pkgdown site.
Directory to save the file to.
Path to the file.
Vignette output style. Defaults to html_document.
Port number to route into the docker container. See the Docker docs for further details.
Port number to route out of docker container. See the Docker docs for further details.
If the file already exists, overwrite it
(default: FALSE
).
Print the contents of the file in the R console.
Print messages.
Path to vignette file.
path <- use_vignette_docker(package = "mypackage",
docker_org = "neurogenomics",
## use default save_dir in practice
save_dir = tempdir())
#> Creating new vignette file ==> /tmp/RtmppaN4bb/vignettes/docker.Rmd