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

