Infer Docker registry organisation name from DESCRIPTION file.

infer_docker_org(docker_org = NULL, docker_registry, verbose = TRUE, ...)

Arguments

docker_org

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_registry

Docker container registry to push to. Options include:

"ghcr.io" :

GitHub Container Registry

"docker.io" :

DockerHub

verbose

Print messages.

...

Arguments passed on to get_description

refs

Reference for one or more GitHub repository in owner/repo format (e.g."neurogenomics/rworkflows"), or an R package name (e.g. "rworkflows").

paths

Paths to DESCRIPTION file(s) R package(s).

cache_dir

Directory where to cache downloaded files.

force_new

Ignore cached files and re-download them instead.

use_wd

Search the local working directory (and the one above it) for DESCRIPTION files.

use_repos

Use R standard R package repositories like CRAN and Bioc to find DESCRIPTION files.

db

A data.table of R package metadata generated by biocPkgList.

repo

character(1) The requested Bioconductor repository. The default is to pull from the "BioCsoft" repository. Possible repositories include "BioCsoft", "BioCexp", "BioCworkflows", "BioCann", and "CRAN". Note that not all repos are available for all versions, particularly older versions.

Value

Docker registry organisation name.

Examples

infer_docker_org(docker_org="myorg", docker_registry="ghcr.io")
#> [1] "myorg"