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 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")

