Learn R Programming

RWsearch (version 4.8.0)

p_archive: Read Packages in CRAN archive

Description

p_archive opens in the browser one page per package and displays the package versions stored in CRAN archive.

p_archive_lst prints in the console a list of the package versions stored in CRAN archive.

Use l_targz takes as input the list obtained from p_archive_lst and extracts the packages before a certain date (Default is today).

Use p_downarch to download packages from CRAN archive, either the latest version or a specific version number.

Use archivedb_list to list all packages stored in CRAN archive (does not include the valid packages having a single version which are stored in regular CRAN only).

Usage

p_archive(..., char = NULL)

p_archive_lst(..., char = NULL, url = "https://cran.r-project.org/src/contrib/Archive")

l_targz(lst, before = Sys.Date())

Arguments

...

any format recognized by cnsc, except list. A vector of packages.

char

(name to) a character vector. Use this argument if ... fails or if you call the function from another function. If used, argument ... is ignored.

url

character. The url address of CRAN archive html file.

lst

list. A list produced by p_archive_lst.

before

character which can be converted to a Date, for instance "2017-05-14". Extract from CRAN archive the package(s) available before this date. Can be synchronized with the release dates of base-R versions listed at: https://CRAN.R-project.org/src/contrib/ and https://CRAN.R-project.org/package=rversions/readme/README.html

Examples

Run this code
# NOT RUN {
p_archive(brew, RWsearch)
# }
# NOT RUN {
lst <- p_archive_lst(brew, pacman, RWsearch, fitur, zmatrix, NotAPkg) ; lst
l_targz(lst, before = "2017-05-14")

# }

Run the code above in your browser using DataLab