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'
}

Try the xROI package in your browser

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

xROI documentation built on June 2, 2021, 9:07 a.m.