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 Sept. 12, 2019, 1:43 p.m.