patched_tempdir: Create a temporary directory path without a double slash

View source: R/utils.R

patched_tempdirR Documentation

Create a temporary directory path without a double slash

Description

This function fixes a long standing bug in R where the tempdir function will return a path with an extra slash.

Usage

patched_tempdir()

Value

character; a string representing the temp directory path without containing a double slash

Note

This function is meant to be used internally. Only use when debugging.

See Also

R documentation on environment vars, Stack Overflow - Why does tempdir() adds extra slash...

Examples

## Not run: 
patched_tempdir()

## End(Not run)

salesforcer documentation built on March 18, 2022, 6:26 p.m.