`temp_folder` created a temporary folder in your AppData directory, which will be automatically removed after you close your RStudio session.

temp_folder(launch = FALSE, quiet = FALSE)

Arguments

launch

do you want to launch the temp folder in the Windows Explorer? default = FALSE

quiet

suppresses the output message related to the folder creation and location, for use in sub functions, default = FALSE

Value

creates a temp directory and stores it as `folderpath_tmp`

Examples

if (FALSE) { # \dontrun{
load_secrets()
temp_folder(launch = TRUE)
purrr::walk2(.x = df_googlefiles$id,
             .y = df_googlefiles$filename,
             .f = ~googledrive::drive_download(googledrive::as_id(.x),
                                               file.path(folderpath_tmp, .y))) } # }