withr icon indicating copy to clipboard operation
withr copied to clipboard

Usage instructions for with_tempdir is unclear

Open jfunction opened this issue 1 year ago • 1 comments

I'm not sure how to reference the temporary directory within the code and the documentation is not helping me understand that. Does the code execute in an environment where the working directory is the tempdir, is there a special variable name (eg path) which references the tempdir that is created, or something else? Looking at the code it creates the tempfile and leverages with_dir so maybe this should be referred to in the documentation?

jfunction avatar May 24 '24 09:05 jfunction