R/check_registry.R

Defines functions check_registry

Documented in check_registry

#' @title Check registry
#' 
#' @description Check that the registry is valid.
#' @param registry A character vector of registry names.
#' @returns A single registry name.
#' 
#' @keywords internal
check_registry <- function(registry){
  
  if(!is.null(registry)){
    registry <- registry[1]
    if(!grepl("/$",registry)){
      registry <- paste0(registry,"/")
    }
    return(registry)
  } else {
    return(NULL)
  }
}

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.