Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 453 Bytes

readme.md

File metadata and controls

22 lines (16 loc) · 453 Bytes

withscratch

Execute code inside a scratch directory context.


Get the latest release.

Usage example:

with_scratch(
  source_directory = "/your/source/",
  target_directory = "/the/target",
  callback_function = function(target_directory) {
    # Your analysis here, using the target_directory.
  },
  cleanup_after = TRUE,
  copy_pattern = "result.txt"
)