# NOT RUN {
### In this first example, we use a small file.
## List the 50 packages of this file, the ones uploaded since 2019-01-01
## and those uploaded in the last 15 days before the last date (2019-02-10)
crandb_load(system.file("data", "zcrandb.rda", package = "RWsearch"))
crandb_pkgs()
dim(crandb)
colnames(crandb)
crandb$Published
crandb_fromto(from = "2019-01-01", to = Sys.Date())
crandb_fromto(from = -15, to = max(crandb$Published))
# }
# NOT RUN {
### Now, we use the big file (7 MB) that contains the list of all packages.
## Download from your local CRAN a fresh version of crandb (5-20 seconds)
## and query the packages of the last 2 days
crandb_down(dir = tempdir(), repos = "https://cloud.r-project.org")
ls()
pkgs <- crandb_fromto(-2) ; pkgs
p_table2(pkgs) # Print in the console (better if full width)
p_display7(pkgs, dir = tempdir()) # Display in the browser
# }
Run the code above in your browser using DataLab