[ RDocumentation ](/)

Moon  [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R
](https://www.datacamp.com/learn/r)

Search all packages and functions

[ base  (version  3.6.2  ) ](/packages/base/versions/3.6.2)

#  capabilities: 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)

##  Arguments

what

character vector or ` NULL ` , specifying required components. ` NULL `
implies that all are required.

##  Value

A named logical vector. Current components are

jpeg

    

is the ` [ jpeg ](/link/jpeg?package=base&version=3.6.2) ` function
operational?

png

    

is the ` [ png ](/link/png?package=base&version=3.6.2) ` function operational?

tiff

    

is the ` [ tiff ](/link/tiff?package=base&version=3.6.2) ` function
operational?

tcltk

    

is the  tcltk  package operational? Note that to make use of Tk you will
almost always need to check that ` "X11" ` is also available.

X11

    

are the ` [ X11 ](/link/X11?package=base&version=3.6.2) ` graphics device and
the X11-based data editor available? This loads the X11 module if not already
loaded, and checks that the default display can be contacted unless a ` X11 `
device has already been used.

aqua

    

is the ` [ quartz ](/link/quartz?package=base&version=3.6.2) ` function
operational? Only on some macOS builds, including  CRAN  binary distributions
of  R  .

Note that this is distinct from ` .Platform$GUI == "AQUA" ` , which is true
only when using the Mac ` R.app ` GUI console.

X11

    

always ` FALSE ` on Windows.

aqua

    

` FALSE ` except on macOS.

http/ftp

    

does the internal method for ` [ url ](/link/url?package=base&version=3.6.2) `
and ` [ download.file ](/link/download.file?package=base&version=3.6.2) `
support  http://  and  ftp://  URLs? Always ` TRUE ` as from  R  3.3.0.

sockets

    

are ` [ make.socket ](/link/make.socket?package=base&version=3.6.2) ` and
related functions available? Always ` TRUE ` as from  R  3.3.0.

libxml

    

is there support for integrating ` libxml ` with the  R  event loop? Always `
TRUE ` as from  R  3.3.0.

fifo

    

are FIFO [ connections ](/link/connections?package=base&version=3.6.2)
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 `
readline ` support has been compiled in and  \--no-readline  was _not_ used
when  R  was invoked. (If  \--interactive  was used, command-line editing will
not actually be available.)

iconv

    

is internationalization conversion via ` [ iconv
](/link/iconv?package=base&version=3.6.2) ` supported? Always true in current
R  .

NLS

    

is there Natural Language Support (for message translations)?

profmem

    

is there support for memory profiling? See ` [ tracemem
](/link/tracemem?package=base&version=3.6.2) ` .

cairo

    

is there support for the ` [ svg ](/link/svg?package=base&version=3.6.2) ` , `
[ cairo_pdf ](/link/cairo_pdf?package=base&version=3.6.2) ` and ` [ cairo_ps
](/link/cairo_ps?package=base&version=3.6.2) ` devices, and for ` type =
"cairo" ` in the ` [ X11 ](/link/X11?package=base&version=3.6.2) ` , ` [ bmp
](/link/bmp?package=base&version=3.6.2) ` , ` [ jpeg
](/link/jpeg?package=base&version=3.6.2) ` , ` [ png
](/link/png?package=base&version=3.6.2) ` , and ` [ tiff
](/link/tiff?package=base&version=3.6.2) ` devices?

ICU

    

is ICU available for collation? See the help on [ Comparison
](/link/Comparison?package=base&version=3.6.2) and ` [ icuSetCollate
](/link/icuSetCollate?package=base&version=3.6.2) ` : it is never used for a C
locale.

long.double

    

does this build use a ` C ` ` long double ` type which is longer than ` double
` ? Some platforms do not have such a type, and on others its use can be
suppressed by the configure option  \--disable-long-double  .