Re: [R-pkg-devel] Analysing namespace reverse dependencies

2019-03-09 Thread Gábor Csárdi
https://github.com/r-lib/pkgapi has map_package() which will list all the functions of a package, where they were defined, and also all function calls, internal ones and calls to external packages as well: map <- pkgapi::map_package("~/works/processx") names(map) #> [1] "name""exports" "defs"

Re: [R-pkg-devel] Analysing namespace reverse dependencies

2019-03-09 Thread Iñaki Ucar
On Sat, 9 Mar 2019 at 15:07, Roger Bivand wrote: > > Hi, > > Is anyone aware of tools permitting the listing of functions in the > namespace of package A used by package B when package B declares that it > depends on A, suggests A, or imports(A) without specifying the functions > from A that B is

[R-pkg-devel] Analysing namespace reverse dependencies

2019-03-09 Thread Roger Bivand
Hi, Is anyone aware of tools permitting the listing of functions in the namespace of package A used by package B when package B declares that it depends on A, suggests A, or imports(A) without specifying the functions from A that B is using? If B imports functions from A, and uses

[Rd] Spurious warning from checkReplaceFuns about a non-replacement function

2019-03-09 Thread Hugh Parsonage
If a function contains the pattern `<-` it is (with a few exceptions) deemed to be a replacement function and in particular must have second argument `value` to pass R CMD check. Consider the function %<->% or any other function containing <- within grapes. I claim that such functions should not