# devtools::install_github("seabbs/getTBinR")
library(pkgnet)
library(dplyr)
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
## devtools::install_github("jimhester/itdepends")
library(itdepends)
## Declare paths explicitly as currently required by pkgnet
pkg_path <- system.file(package = "getTBinR")
report_path <- file.path(getwd(), "getTBinR_report.html")
## Generate pkg report
report <- CreatePackageReport("getTBinR",
report_path = report_path)
## INFO [2019-01-22 09:55:52] Creating package report for package getTBinR with reporters:
##
## SummaryReporter
## DependencyReporter
## FunctionReporter
## INFO [2019-01-22 09:55:52] Checking installed packages...
## INFO [2019-01-22 09:55:52] Found 'getTBinR' in installed packages.
## INFO [2019-01-22 09:55:52] Checking installed packages...
## INFO [2019-01-22 09:55:52] Found 'getTBinR' in installed packages.
## INFO [2019-01-22 09:55:52] Resetting cached network information...
## INFO [2019-01-22 09:55:52] Checking installed packages...
## INFO [2019-01-22 09:55:52] Found 'getTBinR' in installed packages.
## INFO [2019-01-22 09:55:52] Resetting cached network information...
## INFO [2019-01-22 09:55:52] Rendering package report...
## INFO [2019-01-22 09:55:53] Done creating package report! It is available at /home/seabbs/getTBinR/pkgnet/getTBinR_report.html
## Look at functions used using itdepends
dep_usage_pkg("getTBinR") %>%
count(pkg) %>%
arrange(desc(n))
## # A tibble: 16 x 2
## pkg n
## <chr> <int>
## 1 base 1005
## 2 dplyr 81
## 3 magrittr 66
## 4 ggplot2 45
## 5 getTBinR 21
## 6 viridis 9
## 7 plotly 8
## 8 purrr 8
## 9 stats 7
## 10 utils 5
## 11 tibble 3
## 12 tidyr 2
## 13 data.table 1
## 14 ggthemes 1
## 15 rmarkdown 1
## 16 shiny 1
## Currently little scope for removing packages as those with few uses either play a critical role or
## are depended on in turn by packages that see more use (i.e tidyr and dplyr).