dev.interactive          package:grDevices          R Documentation

_I_s _t_h_e _C_u_r_r_e_n_t _G_r_a_p_h_i_c_s _D_e_v_i_c_e _I_n_t_e_r_a_c_t_i_v_e ?

_D_e_s_c_r_i_p_t_i_o_n:

     Test if the current graphics device (or that which would be
     opened) is interactive.

_U_s_a_g_e:

     dev.interactive(orNone = FALSE)

     deviceIsInteractive(name = NULL)

_A_r_g_u_m_e_n_t_s:

  orNone: logical; if 'TRUE', the function also returns 'TRUE' when
          '.Device == "null device"' and 'getOption("device")' is among
          the known interactive devices.

    name: one or more device names as a character vector, or 'NULL' to
          give the existing list.

_D_e_t_a_i_l_s:

     The 'X11' (Unix), 'windows' (Windows) and 'quartz' (Mac OS X,
     on-screen types only) are regarded as interactive, together with
     'JavaGD' (from the package of the same name) and 'CairoWin' and
     'CairoX11' (from package 'Cairo'). Packages can add their devices
     to the list by calling 'deviceIsInteractive'.

_V_a_l_u_e:

     'dev.interactive()' returns a logical, 'TRUE' if and only if an
     interactive (screen) device is in use.

     'deviceIsInteractive' returns the updated list of known
     interactive devices, invisibly unless 'name = NULL'.

_S_e_e _A_l_s_o:

     'Devices' for the available devices on your platform.

_E_x_a_m_p_l_e_s:

     dev.interactive()
     print(deviceIsInteractive(NULL))

