ctv-client                package:ctv                R Documentation

_C_R_A_N _T_a_s_k _V_i_e_w_s: _C_l_i_e_n_t-_s_i_d_e _T_o_o_l_s

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

     Client-side tools for installing CRAN task views.

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

     install.views(views, coreOnly = FALSE, repos = NULL,
       dependencies = TRUE, ...)
     available.views(repos = NULL, ...)

     ## S3 method for class 'ctv':
     print(x, packagelist = TRUE, ...)
     ## S3 method for class 'ctvlist':
     print(x, packagelist = FALSE, ...)

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

   views: character vector with the short names of the task views whose
          associated packages should be downloaded and installed.
          Alternatively, 'views' can also be an object of class
          '"ctvlist"' (as returned by 'available.views') or an object
          of class '"ctv"' (i.e., an element of a '"ctvlist"').

coreOnly: logical. Should all packages or only core packages be
          installed? (recycled to the same length as 'views')

   repos: character, the base URL of the repository. By default
          'getOption("repos")' is tried and otherwise
          'getOption("CRAN")' is used.

dependencies: logical. Should uninstalled packages on which the
          packages associated with the task views depends  (or
          suggests/imports) also be installed?

     ...: further arguments passed to 'install.packages'.

       x: an object of class '"ctv"' or '"ctvlist"' respectively.

packagelist: logical. Should the packagelist also be printed?

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

     'install.views' queries the file 'Views.rds' located at the
     'src/contrib' directory of 'repos' and then simply calls
     'install.packages' to install the packages associated with the
     view specified. For each view it can be specified whether all
     packages or only the core packages should be installed.

     'available.views' returns the names of the task views currently
     available in the file 'Views.rds'. In earlier versions, this was
     called 'CRAN.views' (which still works and provides the same
     functionality).

     For a closer description of the arguments see als
     'install.packages'.

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

     'available.views' returns an object of class '"ctvlist"' of the 
     available task views whose elements are of class '"ctv"'.

     'install.views' has no return value.

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

     'install.packages'

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

     ## Not run: 
       ## query names of CRAN task views available
       available.views()
       
       ## install Econometrics view
       install.views("Econometrics")
       ## only with core packages
       install.views("Econometrics", coreOnly = TRUE)
     ## End(Not run)

