R/check_cont_general.R

Defines functions check_cont_general

check_cont_general <- function(cont){
  lapply(cont, function(co){
    if(is.null(co)) return(NULL)
    if(!grepl("/",co)){
      stopper("Container must be specified in the following format:",
              "'registry/owner/repo:tag'")
    } 
    n_parts <- length(strsplit(gsub("[/]+","/",co),"/")[[1]])
    return(n_parts)
  }) 
}

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.