Learn R Programming

procmaps (version 0.0.5)

path_is_libr: 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)

Value

A logical vector of the same length as path.

Arguments

path

A character vector of paths

Examples

Run this code
map <- procmap_get()
path_is_libr(map$pathname)

Run the code above in your browser using DataLab