inst/doc/docker.R

params <-
list(cont = "ghcr.io/neurogenomics/rworkflows", docker_registry = "ghcr.io", 
    docker_org = "neurogenomics")

## ----setup, include=FALSE-----------------------------------------------------
#### Package name ####
PKG <- read.dcf("../DESCRIPTION", fields = "Package")[1]
library(PKG, character.only = TRUE)
## Docker containers must be lowercase
pkg <- tolower(PKG)
#### Username of DockerHub account ####
docker_org <- params$docker_org
docker_registry <- params$docker_registry 
cont <- params$cont 
docker_url <- if(grepl("ghcr.io",docker_registry)){
  paste("https://ghcr.io",cont,sep="/")
} else {
  paste("https://hub.docker.com/repository/docker",docker_org,pkg,sep="/")
}


## ----Session Info-------------------------------------------------------------
utils::sessionInfo()

Try the rworkflows package in your browser

Any scripts or data that you put into this service are public.

rworkflows documentation built on May 29, 2024, 2:37 a.m.