Skip to content

Commit

Permalink
use R platform independent temp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gothub committed Oct 26, 2017
1 parent 36bb34b commit 3c13e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/code/mdq-cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ library(httr)
#'
#' @examples
get <- function(url) {
temp_dir = Sys.getenv("MDQE_CACHE_DIR", "~/tmp")
temp_dir = Sys.getenv("MDQE_CACHE_DIR", tempdir())
if (temp_dir == "") stop("MDQE_CACHE_DIR was not set.")
if (!file.exists(temp_dir))
stop(paste0("MDQE_CACHE_DIR was set to a path that does not exist: ",
Expand Down

0 comments on commit 3c13e48

Please sign in to comment.