# NOT RUN {
## In real life, download crandb from CRAN or load it from your directory
## with functions crandb_down() or crandb_load().
## In this example, we use a small file.
crandb_load(system.file("data", "zcrandb.rda", package = "RWsearch"))
# }
# NOT RUN {
## Download the documentation in the "dirpkgs" directory. Flat representation.
dir <- file.path(tempdir(), "dirpkgs")
p_down(RWsearch, pdfsearch, sos, dir = dir, repos = "https://cloud.r-project.org")
list.files(dir, recursive = TRUE, full.names = TRUE)
## Download the documentation in subdirectories named after the keywords.
dir <- file.path(tempdir(), "dirpkgslist")
(lst <- s_crandb_list(thermodynamic, "chemical reaction"))
system.time(
p_down(lst, dir = dir, repos = "https://cloud.r-project.org")
)
list.files(dir, recursive = TRUE, full.names = TRUE)
## Download tar.gz files stored in CRAN archive.
dir <- file.path(tempdir(), "targzip")
p_downarch(fitur, zmatrix, NotAPkg, before = "2017-05-14", dir = dir)
targz_down("SVN_1.0.tar.gz", dir = dir)
list.files(dir, recursive = TRUE, full.names = TRUE)
# }
Run the code above in your browser using DataLab