From 03169f21242de7fe4d5fdaddf58fd3dca3075875 Mon Sep 17 00:00:00 2001 From: Ian Lyttle Date: Mon, 1 Jan 2024 17:55:25 -0600 Subject: [PATCH] bump version, add to NEWS --- DESCRIPTION | 5 +++-- NEWS.md | 2 ++ R/boxr_save_load.R | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 20ffa9fd..fd2eb5ef 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: boxr Type: Package Title: Interface for the 'Box.com API' -Version: 0.3.6.9005 +Version: 0.3.6.9006 Authors@R: c( person("Brendan", "Rocks", email = "foss@brendanrocks.com", role = c("aut")), @@ -52,7 +52,8 @@ Imports: tibble, lifecycle, jsonlite, - jose + jose, + withr Suggests: clipr (>= 0.3.0), conflicted, diff --git a/NEWS.md b/NEWS.md index 99fda554..1530d2ad 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,8 @@ ## Internal +* refactor to use withr functions to handle temp files. (#183) + * update documentation to reflect updates to rio package. (#242, @chainsawriot) * update maintainer's email address. (#248) diff --git a/R/boxr_save_load.R b/R/boxr_save_load.R index 6884f3ec..555b9aba 100644 --- a/R/boxr_save_load.R +++ b/R/boxr_save_load.R @@ -32,6 +32,7 @@ box_save <- function(..., dir_id = box_getwd(), file_name = ".RData", description = NULL) { # TODO: fs + #temp_file <- withr::local_tempfile(pattern = file_name) temp_file <- normalizePath(file.path(tempdir(), file_name), mustWork = FALSE) # clean up after ourselves