installFoundDepends          package:tools          R Documentation

_A _f_u_n_c_t_i_o_n _t_o _i_n_s_t_a_l_l _u_n_r_e_s_o_l_v_e_d _d_e_p_e_n_d_e_n_c_i_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     This function will take the 'Found' element of a 'pkgDependsList'
     object and attempt to install  all of the listed packages from the
     specified repositories.

_U_s_a_g_e:

     installFoundDepends(depPkgList, ...)

_A_r_g_u_m_e_n_t_s:

depPkgList: A 'Found' element from a 'pkgDependsList' object

     ...: Arguments to pass on to 'install.packages'

_D_e_t_a_i_l_s:

     This function takes as input the 'Found' list from a
     'pkgDependsList' object.  This list will have element names being
     URLs corresponding to repositories and the elements will be
     vectors of package names.  For each element, 'install.packages' is
     called for that URL to install all packages listed in the vector.

_A_u_t_h_o_r(_s):

     Jeff Gentry

_S_e_e _A_l_s_o:

     'pkgDepends', 'install.packages'

_E_x_a_m_p_l_e_s:

     ## Set up a temporary directory to install packages to
     tmp <- tempfile()
     dir.create(tmp)

     pDL <- pkgDepends("tools",local=FALSE)
     installFoundDepends(pDL$Found, destdir=tmp)

