temp_folder: Generate Temporary Folder

View source: R/utilities.R

temp_folderR Documentation

Generate Temporary Folder

Description

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

Usage

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

## Not run: 
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))) 
## End(Not run)

USAID-OHA-SI/glamr documentation built on July 6, 2024, 6:39 a.m.