path_is_libr {procmaps}R Documentation

Does a path represent R's main library?

Description

For a vector of paths, checks if the basename matches libR or R. This is useful to detect the addresses occupied by R itself.

Usage

path_is_libr(path)

Arguments

path

A character vector of paths

Value

A logical vector of the same length as path.

Examples

map <- procmap_get()
path_is_libr(map$pathname)

[Package procmaps version 0.0.5 Index]