codeIds_to_codePaths: Replace code identifiers with their full paths

View source: R/codeIds_to_codePaths.R

codeIds_to_codePathsR Documentation

Replace code identifiers with their full paths

Description

This function replaces the column names in the mergedSourceDf data frame in a rock_parsedSource or rock_parsedSources object with the full paths to those code identifiers.

Usage

codeIds_to_codePaths(
  x,
  stripRootsFromCodePaths = rock::opts$get("stripRootsFromCodePaths")
)

Arguments

x

A rock_parsedSource or rock_parsedSources object as returned by a call to parse_source() or parse_sources().

stripRootsFromCodePaths

Whether to strip the roots first (i.e. the type of code)

Value

An adapted rock_parsedSource or rock_parsedSources object.


rock documentation built on Dec. 28, 2022, 1:55 a.m.