knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  eval = FALSE
)

Input cases

base case

Renaming a file in a directory.

"R/{rbind.r => bind.r}"

A file name change may not have {

"API => API2"

add directory in between

rename from vignettes/vagrant-setup.Rmd to vignettes/notes/vagrant-setup.Rmd

"vignettes/{ => notes}/mysql-setup.Rmd" 

rename directory

rename from src/dplyr_types.h to inst/include/dplyr_types.h

"{src => inst/include}/dplyr_types.h"

Processing

  1. Preprocess name to have { and }.
  2. take left title (vignettes / None)
  3. take right title (file name)
  4. Set left expression in parenthesis as old, right one as new.
  5. Paste left title with left expr and right expr and add right title


lorenzwalthert/gitsum documentation built on Jan. 17, 2021, 9:34 p.m.