loadDepends package:reposTools R Documentation _A _f_u_n_c_t_i_o_n _t_o _l_o_a_d _p_a_c_k_a_g_e/_v_i_g_n_e_t_t_e _d_e_p_e_n_d_e_n_c_i_e_s _D_e_s_c_r_i_p_t_i_o_n: Given a package or a vignette, will determine any dependencies and load the required packages - as well as alerting the user to any unresolved dependencies. _U_s_a_g_e: loadDepends(x, force = FALSE, recursive = TRUE, local = TRUE) _A_r_g_u_m_e_n_t_s: x: The object to check force: If TRUE, will continue even if not all dependencies are installed recursive: Whether or not to look at indirect dependencies local: Whether or not to only search locally or to use the internet to find unresolved dependencies _D_e_t_a_i_l_s: This function will first determine if the object is an installed package or a vignette. In either case, it will extract a listing of all dependencies (both the names and any versioning requirements). If not all of the dependencies are met, the function will halt with an error and report which packages were not met - unless the 'force' option is set to 'TRUE'. Otherwise, all of the installed dependencies will be loaded. _V_a_l_u_e: A character vector listing the loaded packages. If there were no installed dependencies to load, an empty vector is returned. _A_u_t_h_o_r(_s): Jeff Gentry _E_x_a_m_p_l_e_s: ## Using 'local==TRUE' in case the user doesn't have an internet ## connection available. loadDepends("reposTools", local=TRUE)