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)
}
BioPAX/paxtoolsr documentation built on Jan. 31, 2023, 4:22 a.m.