- input
One of 1) a character string specifying the path to a file
with a source; 2) an object with a loaded source as produced by a call
to load_source()
; 3) a character string specifying the path to a directory
containing one or more sources; 4) or an object with a list of loaded
sources as produced by a call to load_sources()
.
- codes
A character vector with codes to remove.
- filter
Optionally, a filter to apply to specify a subset of the
source(s) to process (see get_source_filter()
).
- output
If specified, the recoded source(s) will be written here.
- filenameRegex
Only process files matching this regular expression.
- outputPrefix, outputSuffix
The prefix and suffix to add to the
filenames when writing the processed files to disk, in case multiple
sources are passed as input.
- childrenReplaceParents
Whether children should be deleted (FALSE
)
or take their parent code's place (TRUE
). This is ignored if
recursiveDeletion=TRUE
, in which case children are always deleted.
- recursiveDeletion
Whether to also delete a code's parents (TRUE
),
if they have no other children, and keep doing this until the root is
reached, or whether to leave parent codes alone (FALSE
). This takes
precedence over childrenReplaceParents
.
- decisionLabel
A description of the (recoding) decision that was taken.
- justification
The justification for this action.
- justificationFile
If specified, the justification is appended to
this file. If not, it is saved to the justifier::workspace()
. This can
then be saved or displayed at the end of the R Markdown file or R script
using justifier::save_workspace()
.
- preventOverwriting
Whether to prevent overwriting existing files
when writing the files to output
.
- encoding
The encoding to use.
- silent
Whether to be chatty or quiet.