R/check_tags.R

Defines functions check_tags

check_tags <- function(splt,
                       tags,
                       verbose=TRUE){
  if(length(splt)==2){
    messager("Checking tag exists:",shQuote(splt[2]),
             v=verbose) 
    if(!splt[2] %in% tags){
      stopper("The tag", shQuote(splt[2]),
              "does not exist in the repo",shQuote(splt[1]))
    }
  }
}

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.