File: pager_is_less.Rd

package info (click to toggle)
r-cran-diffobj 0.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,432 kB
  • sloc: ansic: 455; javascript: 96; sh: 32; makefile: 8
file content (33 lines) | stat: -rwxr-xr-x 1,130 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pager.R
\name{pager_is_less}
\alias{pager_is_less}
\title{Check Whether System Has less as Pager}
\usage{
pager_is_less()
}
\value{
TRUE or FALSE
}
\description{
If \code{getOption(pager)} is set to the default value, checks whether
\code{Sys.getenv("PAGER")} appears to be \code{less} by trying to run the
pager with the \dQuote{version} and parsing the output.  If
\code{getOption(pager)} is not the default value, then checks whether it
points to the \code{less} program by the same mechanism.
}
\details{
Some systems may have \code{less} pagers installed that do not respond to the
\code{$LESS} environment variable.  For example, \code{more} on at least some
versions of OS X is \code{less}, but does not actually respond to
\code{$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 \code{\link{Pager}}).
}
\examples{
pager_is_less()
}
\seealso{
\code{\link{Pager}}
}