R/check_paths.R

Defines functions check_paths

check_paths <- function(refs,
                        paths,
                        verbose=TRUE){
  if(!is.null(refs)){
    if(length((paths))!=length(refs)){
      messager("When refs is provided, paths must have the same length",
               "(or be set to NULL).","Setting paths=NULL.",v=verbose)
      paths <- list(NULL)
    }
  }
  return(paths)
}

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.