rlang-reexports {icecream} | R 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 |
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 ofdir
fromx
. Ensures that we get a relative path forx
.
[Package icecream version 0.2.2 Index]