ns-dblcolon               package:base               R Documentation

_D_o_u_b_l_e _C_o_l_o_n _a_n_d _T_r_i_p_l_e _C_o_l_o_n _O_p_e_r_a_t_o_r_s

_D_e_s_c_r_i_p_t_i_o_n:

     Accessing exported and internal variables in a name space.

_U_s_a_g_e:

     pkg::name
     pkg:::name

_A_r_g_u_m_e_n_t_s:

     pkg: package name symbol or literal character string.

    name: variable name symbol or literal character string.

_D_e_t_a_i_l_s:

     The expression 'pkg::name' returns the value of the exported
     variable 'name' in package 'pkg' if the package has a name space. 
     The expression 'pkg:::name' returns the value of the internal
     variable 'name' in package 'pkg' if the package has a name space. 
     The package will be loaded if it was not loaded already before the
     call.  Assignment into name spaces is not supported.

     Note that it is typically a design mistake to use ':::' in your
     code since the corresponding object has probably been kept
     namespace-internal for a good reason.  Consider contacting the
     package maintainer if you feel the need to access the object for
     anything but mere inspection.

     If the package 'pkg' does not have a name space but is on the
     search path then 'pkg::name' returns the value of 'name' in the
     package environment.

_S_e_e _A_l_s_o:

     'get' to access an object masked by another of the same name.

_E_x_a_m_p_l_e_s:

     base::log
     base::"+"

     ## Beware --  use ':::' at your own risk! (see "Details")
     stats:::coef.default

