Learn R Programming

rock (version 0.8.1)

codeIds_to_codePaths: 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")
)

Value

An adapted rock_parsedSource or rock_parsedSources object.

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)