parse_reassignment: Parse a raw reassignment into a list

Description Usage Arguments Examples

View source: R/renamed-files.R

Description

Takes a vector of raw reassignments and turns them into a list of elements. Every element contains the old path, the new path and the index of the reassignment.

Usage

1
parse_reassignment(raw_reassignment, reassignment_index)

Arguments

raw_reassignment

Character vector with raw re-assignments.

reassignment_index

Integer vector indicating the position of the re-assignment in the original unnested detailed log.

Examples

1
2
3
4
gitsum:::parse_reassignment(
  c("R/{a => b}", "API => api2", "{src => inst/include}/dplyr_types.h"),
  c(1, 2, 33)
)

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