R/checkOutputFile.R

Defines functions checkOutputFile

#' Utility method; create temporary file if necessary
#' 
#' @param file a string
#' @return location of file 
#' 
#' @concept paxtoolsr
#' @noRd
checkOutputFile <- function(file) {
    if(is.null(file)) {
        file <- tempfile() 
    }    
    
    return(file)
}

Try the paxtoolsr package in your browser

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

paxtoolsr documentation built on Nov. 8, 2020, 8:29 p.m.