srcref to a character representationsrcref_key(x, nloc = 2, path = c("base", "root", "full"))A string hash of a srcref
A srcref object
The number of locations (utils::getSrcLocation) to use.
Defaults to 2, indicating starting and ending line number.
A form of file path to use for the key. One of "base" for only
the basename of the source file path, "root" for a path relative to a
package root directory if found, or "full" for the full file path.