vignetteDepends            package:tools            R Documentation

_R_e_t_r_i_e_v_e _D_e_p_e_n_d_e_n_c_y _I_n_f_o_r_m_a_t_i_o_n _f_o_r _a _V_i_g_n_e_t_t_e

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

     Given a vignette name, will create a DependsList object that
     reports information about the packages the vignette depends on.

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

     vignetteDepends(vignette, recursive = TRUE, reduce = TRUE,
                     local = TRUE, lib.loc = NULL)

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

vignette: The path to the vignette source

recursive: Whether or not to include indirect dependencies

  reduce: Whether or not to collapse all sets of dependencies to a
          minimal value

   local: Whether or not to search only locally

 lib.loc: What libraries to search in locally

_D_e_t_a_i_l_s:

     If 'recursive' is 'TRUE', any package that is specified as a
     dependency will in turn have its dependencies included (and so
     on), these are known as indirect dependencies.  If recursive is
     'FALSE', only the dependencies directly named by the vignette will
     be used.

     If 'local' is 'TRUE', the system will only look at the user's
     local machine and not online to find dependencies.

     If 'reduce' is 'TRUE', the system will collapse the fields in the
     'DependsList' to the minimal set of dependencies (for instance if
     the dependencies were ('foo', 'foo (>= 1.0.0)',  'foo (>=
     1.3.0)'), the return value would be 'foo (>= 1.3.0)').

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

     An object of class 'DependsList'

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

     Jeff Gentry

_S_e_e _A_l_s_o:

     'pkgDepends'

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

     gridEx <- system.file("doc", "grid.Snw", package = "grid")
     vignetteDepends(gridEx)

