eddelbuettel / prrd

Parallel Running of Reverse Depends
12 stars 4 forks source link

Reduce dependencies? #1

Open eddelbuettel opened 6 years ago

eddelbuettel commented 6 years ago
R> AP <- available.packages()
R> rl <- tools::package_dependencies(c("DBI", "crayon", "data.table", 
+                                      "config", "liteq", "RSQLite"), 
+                                    db=AP, recursive=TRUE)
R> unique(sort(do.call(c, rl)))
 [1] "assertthat" "BH"         "bit"        "bit64"      "blob"      
 [6] "cli"        "crayon"     "DBI"        "digest"     "grDevices" 
[11] "memoise"    "methods"    "pillar"     "pkgconfig"  "plogr"     
[16] "rappdirs"   "Rcpp"       "rlang"      "RSQLite"    "stats"     
[21] "tibble"     "tools"      "utf8"       "utils"      "yaml"      
R> 

Main culprit here is RSQLite. We don't really need all that SQL power here (or in liteq). Maybe just write data.table to disk via saveRDS() and put a file lock around that?

eddelbuettel commented 6 years ago

There is now a lighter RSQLite variant in this experimental fork.

And a blog post discusses the wider context of dependencies.