requiredPackages       package:BiocCaseStudies       R Documentation

_c_h_e_c_k _f_o_r _m_i_s_s_i_n_g _a_n_d _o_u_t_d_a_t_e_d _p_a_c_k_a_g_e_s

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

     Both functions compare the 'Depends' field of the 'DESCRIPTION' of
     the 'BiocCaseStudies' package. 'requiredPackages' is run before a
     build of the book. It throws an error if there are any missing or
     outdated packages. 'packages2install' returns a character vector
     of packages that need (re)installing.

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

     requiredPackages(load=FALSE)
     packages2install()

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

    load: Logical. Should all packages be loaded?

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

     'requiredPackages' returns 'invisible(NULL)'. The function is
     called for its side effects. 'packages2install' returns a
     character vector that can be passed to the 'biocLite' function
     from the 'biocLite.R' script.

_A_u_t_h_o_r(_s):

     Florian Hahne

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

       ## Not run: 
         biocLite(packages2install())
       
     ## End(Not run)

