powered by
Creates a new directory at tempfile() and runs code inside with withr::with_dir()
tempfile()
withr::with_dir()
tar_dir(code)
User-defined code.
Return value of the user-defined code.
# NOT RUN { tar_dir(file.create("x")) file.exists("x") # Should be false. # }
Run the code above in your browser using DataLab