machine                 package:base                 R Documentation

_D_e_t_e_r_m_i_n_e _t_h_e _M_a_c_h_i_n_e _R _i_s _R_u_n_n_i_n_g _O_n

_D_e_s_c_r_i_p_t_i_o_n:

     This function returns a character string which specifies what kind
     of environment R is being run in.

_U_s_a_g_e:

     machine()

_S_e_e _A_l_s_o:

     `.Platform' which provides more than `machine()'; `Machine' for
     the computer's characteristics in arithmetics;

_E_x_a_m_p_l_e_s:

     machine()# to see yours
     tolower(machine()) == .Platform $ OS ## --> often TRUE
     if (machine() == "Macintosh")
       cat("You are using a Macintosh computer\n")

