Search code examples
rrcppcran

Search for reverse dependencies with versioned depends


Is there any way to search for installed packages that depend on a particular version of another package? The dependsOnPkgs function from tools does not seem to support this.

I would like to find all packages on CRAN that depend/import/link Rcpp >= 0.11, such as currently plyr and httpuv. I need this information to "pin" these packages to an older version that worked with Rcpp 0.10.6, until I can upgrade Rcpp on my servers.


Solution

  • Your comment above helps a little to clarify.

    What you need to do is to use something like this script on GitHub which identifies your installed and Rcpp-using packages, and splits it between those from CRAN and elsewhere.

    Those from CRAN you can rebuild with a single R command; the others you need to hunt down.

    We are sorry for the inconvenience caused, but there is no other way around it. The 0.11.* release series requires a rebuild. All CRAN packages are expected to pass; you just need to spend the few minutes compiling them. If your servers are running the same OS configuration, you can then simply rsync the package directory to the other machines.