From 735e03d0652eaa0053486e6bfc3fafac53806583 Mon Sep 17 00:00:00 2001 From: Ian Lyttle Date: Sat, 3 Feb 2024 12:18:13 -0600 Subject: [PATCH] fix bug introduced into box_save() --- R/boxr_save_load.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/boxr_save_load.R b/R/boxr_save_load.R index f9b781b..e8d8396 100644 --- a/R/boxr_save_load.R +++ b/R/boxr_save_load.R @@ -31,8 +31,8 @@ box_save <- function(..., dir_id = box_getwd(), file_name = ".RData", description = NULL) { - temp_file <- withr::local_tempfile(pattern = file_name) - + temp_file <- fs::path(withr::local_tempdir(), file_name) + save(..., envir = parent.frame(), file = temp_file) box_ul(dir_id, temp_file, description = description)