# NOT RUN {
### In this example, we use a small file.
## List the 110 packages of this file, the ones uploaded since 2020-01-01
## and those uploaded in the last 15 days before the last date (2020-04-17)
crandb_load(system.file("data", "zcrandb.rda", package = "RWsearch"))
crandb_pkgs()
dim(crandb)
colnames(crandb)
crandb$Published
crandb_fromto(from = "2020-01-01", to = Sys.Date())
pkgs <- crandb_fromto(from = -15, to = max(crandb$Published)) ; pkgs
p_table2(pkgs) # Print in the console (better if full width)
# }
# NOT RUN {
p_display7(pkgs, dir = tempdir()) # Display in the browser
### In the real life, we use a fresh file downloaded from CRAN (6 MB / 20").
## Here, we retrieve the packages uploaded in the last 2 days.
# crandb_down(dir = tempdir(), repos = "https://cloud.r-project.org")
# crandb_fromto(-2)
# }
Run the code above in your browser using DataLab