path_is_libr: Does a path represent R's main library?

View source: R/is-libr.R

path_is_librR 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)

procmaps documentation built on Jan. 22, 2023, 1:21 a.m.