Wrapper around rename_files2(), but shortcut to allow renaming the active file.
Arguments
- new
A new directory
- old
The old file (defaults to the active RStudio document.)
- ...
Arguments passed on to
rename_files2overwritewhether to overwrite
newif it already exists. Be careful.forceactionOne of
"rename"or"test"warn_conflictsOne of
"default": will be check more thoroughly depending on the situation. If only moving directory, and"all"otherwise."all"(larger scope: ifold = "data/my-streets.csv|my_streets"will check for objects namedmy_streets, other files likemy-streets.R, etc.),"exact"will only search for"data/my-streets.csv"in documents"none"will not search for references in documents and will rename.