Closed krivit closed 2 years ago
The current most feasible solution is to come from the other direction: scan through the dependencies of all loaded packages to check for ergm
.
tools::package_dependencies()
calls utils::available.packages()
which is very slow on any system, so it's probably a bad idea. However, packageDescription()
takes almost no time, so it may be best to simply use a regex to search the Depends:
and other fields for it.
Thanks to Kurt Hornik, the problem with Win-Builder and CRAN checks has been traced to frequent calls to
tools::dependsOnPkgs()
, which in turn callsutils::installed.packages()
, which is extremely slow on CRAN because it has all the packages.The recent change to the termalike template, for which the keywords/concepts are pulled in via a
\Sexpr{}
, brings things to a head, since it callsergmTermCache()
at least once for every termalike, andergmTermCache()
callstools::dependsOnPkgs()
every time.