capabilities {base} | R Documentation |
Report Capabilities of this Build of R
Description
Report on the optional features which have been compiled into this build of R.
Usage
capabilities(what = NULL,
Xchk = any(nas %in% c("X11", "jpeg", "png", "tiff")))
Arguments
what |
character vector or |
Xchk |
|
Value
A named logical vector. Current components are
jpeg |
is the |
png |
is the |
tiff |
is the |
tcltk |
is the tcltk package operational?
Note that to make use of Tk you will almost always need to check
that |
X11 |
are the |
aqua |
is the Note that this is distinct from |
http/ftp |
does the default method for |
sockets |
are |
libxml |
is there support for integrating |
fifo |
are FIFO connections supported? |
cledit |
is command-line editing available in the current R
session? This is false in non-interactive sessions.
It will be true for the command-line interface if |
iconv |
is internationalization conversion via
|
NLS |
is there Natural Language Support (for message translations)? |
Rprof |
is there support for |
profmem |
is there support for memory profiling? See
|
cairo |
is there support for the |
ICU |
is ICU available for collation? See the help on
Comparison and |
long.double |
does this build use a Although not guaranteed, it is a reasonable assumption that if
present long doubles will have at least as much range and accuracy
as the ISO/IEC 60559 80-bit ‘extended precision’ format. Since
R 4.0.0 |
libcurl |
is |
Note to macOS users
Capabilities "jpeg"
, "png"
and "tiff"
refer to
the X11-based versions of these devices. If
capabilities("aqua")
is true, then these devices with
type = "quartz"
will be available, and out-of-the-box will be the
default type. Thus for example the tiff
device will be
available if capabilities("aqua") || capabilities("tiff")
if
the defaults are unchanged.
See Also
.Platform
, extSoftVersion
, and
grSoftVersion
(and links there)
for availability of capabilities external to R but
used from R functions.
Examples
capabilities()
if(!capabilities("ICU"))
warning("ICU is not available")
## Does not call the internal X11-checking function:
capabilities(Xchk = FALSE)
## See also the examples for 'connections'.