Skip to content
Prev 206320 / 398503 Next

R package dependencies

For the original question:

 >   what are a packages dependencies

tools:::package.dependencies(available.packages())


 >   what are a packages reverse dependencies

tools:::dependsOnPkgs(available.packages()[,1])


 >   does a package contain a dll

If the package has been installed already and you want to get the number 
of dlls in libs:

   length(grep("\\.dll$", dir(system.file(package="foo", "libs"))))

or if not installed, you can get an idea by looking at the check logs on 
CRAN. If they contain a line
  * checking line endings in C/C++/Fortran sources/headers ... OK
they also contain compiled code. This is not a save test, though.

Uwe Ligges
On 14.01.2010 12:27, Colin Millar wrote: