rename_files {usethis} | R Documentation |
Automatically rename paired R/
and test/
files
Description
Moves
R/{old}.R
toR/{new}.R
Moves
src/{old}.*
tosrc/{new}.*
Moves
tests/testthat/test-{old}.R
totests/testthat/test-{new}.R
Moves
tests/testthat/test-{old}-*.*
totests/testthat/test-{new}-*.*
and updates paths in the test file.Removes
context()
calls from the test file, which are unnecessary (and discouraged) as of testthat v2.1.0.
This is a potentially dangerous operation, so you must be using Git in order to use this function.
Usage
rename_files(old, new)
Arguments
old , new |
Old and new file names (with or without extensions). |
[Package usethis version 3.0.0 Index]