R/gettmpdir.R

Defines functions gettmpdir

Documented in gettmpdir

#' Path to the TEMP directory
#'
#' This function returns the path to the TEMP directory
#' @return the path to the system temporary directory
#' @keywords  temporary directory
#' @export
#' @examples
#' p <- gettmpdir()
#'
gettmpdir <- function() {
  if (.Platform$OS.type == 'windows')
    Sys.getenv('R_USER')
  else
    '/tmp'
}
bnasr/xROI documentation built on June 7, 2021, 7:56 a.m.