rlang-reexports: Functions re-exported from rlang

rlang-reexportsR Documentation

Functions re-exported from rlang

Description

These are used to extract and format source references. As they are not part of the public rlang API they are reimplemented here.

Usage

src_loc(srcref, dir = getwd())

relish(x, dir = getwd())

Arguments

srcref

A srcref object

dir

Directory path

x

File path

Value

Character vector containing either a source location (for src_loc()) or a path (for relish()).

Functions

  • src_loc: Return source location from a srcref. If no srcref is found, return "".

  • relish: Tidy file paths by removing instances of dir from x. Ensures that we get a relative path for x.


DominikRafacz/icecream documentation built on July 7, 2022, 11:45 a.m.