read.ctv(file)
ctv2html(x, file = NULL, css = "../CRAN_web.css", packageURL = "../packages/", reposname = "CRAN")
check_ctv_packages(file, repos = TRUE, ...)
repos_update_views(repos = ".", css = "../CRAN_web.css", reposname = "CRAN", ...)read.ctv a CRAN
task view .ctv file, and for ctv2html the corresponding
output .html file."ctv" as returned by read.ctv.available.packages or
ctv2html, respectively.updateViews returns an object of class "ctvlist" containing
the "ctv" objects available.ctv2html returns invisibly a vector with the HTML code generated.read.ctv returns a list of class "ctv" with elements:
name
(character, name of package) and core (logical, Is priority core?).read.ctv can read a .ctv file with a CRAN task view specification
and returns an object of class "ctv". This functions requires the availability
of the XML package.
ctv2html generates a .html file with the information contained in
a "ctv" object.
check_ctv_packages checks whether the info and packagelist sections of the
.ctv file are consistent with each other and whether all packages are available
from the repository.
repos_update_views reads all .ctv files in a specified directory, generates
a .html file for each and an index .html file. Furthermore, it stores
all "ctv" objects in a "ctvlist" object in a file Views.rds that can be queried
by install.views or CRAN.views.
install.views## read .ctv file
x <- read.ctv(system.file("ctv", "Econometrics.ctv", package = "ctv"))
x
## Not run:
# ## generate corresponding .html file
# ctv2html(x)
#
# ## check packagelist
# check_ctv_packages(x)
# ## End(Not run)
Run the code above in your browser using DataLab