pager_is_less: Check Whether System Has less as Pager

Description Usage Details Value See Also Examples

View source: R/pager.R

Description

If getOption(pager) is set to the default value, checks whether Sys.getenv("PAGER") appears to be less by trying to run the pager with the “version” and parsing the output. If getOption(pager) is not the default value, then checks whether it points to the less program by the same mechanism.

Usage

1

Details

Some systems may have less pagers installed that do not respond to the $LESS environment variable. For example, more on at least some versions of OS X is less, but does not actually respond to $LESS. If such as pager is the system pager you will likely end up seeing gibberish in the pager. If this is your use case you will need to set-up a custom pager configuration object that sets the correct system variables (see Pager).

Value

TRUE or FALSE

See Also

Pager

Examples

1

diffobj documentation built on Oct. 5, 2021, 9:07 a.m.