Removes a sandbox directory and all its contents. This should be called after testing is complete to free up disk space.
Arguments
- sandbox
Optional. A sandbox object created by
setup_sandbox(). If NULL (default), cleans up the most recently created sandbox.- force
Logical. If TRUE (default), removes directory even if it contains files.
Examples
with_example({
sandbox <- setup_sandbox()
cleanup_sandbox(sandbox)
})