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)
}
cannin/paxtoolsr documentation built on Feb. 2, 2023, 11:44 a.m.