### Get path to example source
examplePath <-
system.file("extdata", package="rock");
### Get a path to one example file
exampleFile <-
file.path(examplePath, "example-1.rock");
### Load example source
loadedExample <- rock::load_source(exampleFile);
### Move two codes to a new parent, showing progress
recoded_source <-
rock::recode_merge(
loadedExample,
codes=c("childCode2", "grandchildCode2"),
mergeToCode="mergedCode",
silent=FALSE
);
Run the code above in your browser using DataLab