tempdir: Create and Delete Temporary Directories

Description Usage Arguments Details Value Examples

Description

Quickly create and delete a temporary directory with a *sort of* random filepath.

Usage

1
2
3
4
5

Arguments

tmpdir

A directory to delete (and it's contents).

Details

For terms_dates(), you need to have an ODBC connection to the EDS Database, named "Research". You also need the DBI package installed.

Value

A potential filepath, or the filepath that was created.

Examples

1
2
3
4
5
6
7
8
# Provides a filepath to use as the temp directory, but does not create the directory.
temp_dir()

# Creates and returns the name of a temp directory.
tmpdir <- create_temp_dir()

# Removes a directory and its contents. (Doesn't have to be a "temp" directory.
remove_temp_dir(tmpdir)

christian-million/researchR documentation built on May 15, 2019, 12:45 p.m.