nsl                  package:utils                  R Documentation

_L_o_o_k _u_p _t_h_e _I_P _A_d_d_r_e_s_s _b_y _H_o_s_t_n_a_m_e

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

     Interface to 'gethostbyname'.

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

     nsl(hostname)

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

hostname: the name of the host.

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

     The IP address, as a character string, or 'NULL' if the call
     fails.

_N_o_t_e:

     This was included as a test of internet connectivity, to fail if
     the node running R is not connected.  It will also return 'NULL'
     if BSD networking is not supported, including the header file
     'arpa/inet.h'.

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

     ## Not run: nsl("www.r-project.org")

