capabilities              package:base              R Documentation

_R_e_p_o_r_t _C_a_p_a_b_i_l_i_t_i_e_s _o_f _t_h_i_s _B_u_i_l_d _o_f _R

_D_e_s_c_r_i_p_t_i_o_n:

     Report on the optional features which have been compiled into this
     build of R.

_U_s_a_g_e:

     capabilities(what = NULL)

_A_r_g_u_m_e_n_t_s:

    what: character vector or 'NULL', specifying required components. 
          'NULL' implies that all are required.

_V_a_l_u_e:

     A named logical vector. Current components are 

    jpeg: Is the 'jpeg' function operational?

     png: Is the 'png' function operational?

    tiff: Is the 'tiff' 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' 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: Are the 'R.app' GUI components and the 'quartz' function
          operational?  Only on some Mac OS X builds.  Note that this
          is distinct from '.Platform$GUI == "AQUA"', which is true
          when using the Mac 'R.app' console.

http/ftp: Are 'url' and the internal method for 'download.file'
          available?

 sockets: Are 'make.socket' and related functions available?

  libxml: Is there support for integrating 'libxml' with the R event
          loop?

    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 'readline' support has been
          compiled in and '--no-readline' was _not_ used when R was
          invoked. 

   iconv: is internationalization conversion via 'iconv' supported?

     NLS: is there Natural Language Support (for message translations)?

 profmem: is there support for memory profiling?

   cairo: is there support for 'type="Cairo"' in 'X11', 'png','jpeg',
          'tiff' and 'bmp', and for the 'svg', 'cairo_pdf' and
          'cairo_ps' devices?

_N_o_t_e _t_o _M_a_c _O_S _X _u_s_e_r_s:

     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.

_S_e_e _A_l_s_o:

     '.Platform'

_E_x_a_m_p_l_e_s:

     capabilities()

     if(!capabilities("http/ftp"))
        warning("internal download.file() is not available")

     ## See also the examples for 'connections'.

