| PackageCopyStrategy | R Documentation |
It copies all files and directories from the original directory to a temporary directory.
When symlink = TRUE, only the top-level directory holding the mutated file
(e.g. R/) is copied; every other top-level directory and root file is
symlinked to the original. For N mutants this avoids N full copies, which
matters when the project carries large inst//data/ directories. Tests
only read the symlinked files, so this is safe as long as the test suite
does not write into the package's own directories (writes through a symlink
would modify the original).
muttest::CopyStrategy -> PackageCopyStrategy
new()Create a package copy strategy
PackageCopyStrategy$new(symlink = FALSE)
symlinkIf TRUE, symlink unchanged files instead of copying them.
execute()Copy project files, excluding hidden and temp directories
PackageCopyStrategy$execute(original_dir, plan)
original_dirThe original directory to copy from
planThe current test plan
The path to the temporary directory
clone()The objects of this class are cloneable with this method.
PackageCopyStrategy$clone(deep = FALSE)
deepWhether to make a deep clone.
Other CopyStrategy:
CopyStrategy,
default_copy_strategy()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.