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.


icecream documentation built on Sept. 27, 2023, 5:08 p.m.