Re: [R] Fwd: Which external functions are called in a package?

2020-01-03 Thread Jeff Newmiller
No, sorry, I misunderstood your question.

a) Read the NAMESPACE file of package B? If they use importFrom that would be 
specific enough.

b) "Suggests" can refer to usage that does not even appear in the loaded 
package at all.

c) Try asking in the r-package-devel mailing list?

On January 3, 2020 1:52:51 PM PST, Hans W Borchers  wrote:
>Jeff, the problem is:
>There I see the packages that depend on mine, but not which functions
>are used
>Or maybe I misunderstood your comment.
>
>On Fri, 3 Jan 2020 at 22:49, Jeff Newmiller 
>wrote:
>>
>> If you are so lucky as to have this problem, perhaps you could take a
>look at the reverse dependencies on your packages' CRAN web page.
>>
>> On January 3, 2020 1:45:42 PM PST, Hans W Borchers
> wrote:
>> >You are absolutely right. I forgot that there is a difference
>between
>> >the unpacked and the installed directory of a package. The
>> >documentation of the *pkgapi* package in development is quite scarce
>> >and does not mention the details. Thanks for the tip.
>> >
>> >--HW
>> >
>> >PS: Still I would like to learn about other approaches for listing
>> >external calls of a package. This must be a general problem for
>> >package developers whose packages are depended on by many other CRAN
>> >packages.
>> >
>> >
>> >On Fri, 3 Jan 2020 at 20:19, Duncan Murdoch
>
>> >wrote:
>> >>
>> >> I'm not really familiar with pkgapi, but I believe the first
>argument
>> >is
>> >> to the source directory for a package.  It looks as though you are
>> >> pointing to the installed copy of it.
>> >>
>> >> Duncan Murdoch
>> >
>> >__
>> >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> >https://stat.ethz.ch/mailman/listinfo/r-help
>> >PLEASE do read the posting guide
>> >http://www.R-project.org/posting-guide.html
>> >and provide commented, minimal, self-contained, reproducible code.
>>
>> --
>> Sent from my phone. Please excuse my brevity.

-- 
Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Fwd: Which external functions are called in a package?

2020-01-03 Thread Duncan Murdoch

On 03/01/2020 4:45 p.m., Hans W Borchers wrote:

You are absolutely right. I forgot that there is a difference between
the unpacked and the installed directory of a package. The
documentation of the *pkgapi* package in development is quite scarce
and does not mention the details. Thanks for the tip.

--HW

PS: Still I would like to learn about other approaches for listing
external calls of a package. This must be a general problem for
package developers whose packages are depended on by many other CRAN
packages.



I've never worried too much about that for my packages.  What matters is 
whether the changes I make cause trouble for other packages.  Knowing 
the reverse dependencies lets me test all the other packages after 
making changes, and if new problems come up, it's usually pretty obvious 
which of my functions were being used.


(I use some code I wrote for myself to run the tests with the old and 
new version of my package, but I believe there is similar code out there 
nowadays to do the comparison.  I'd look in devtools if I was looking 
for that.)


Duncan Murdoch

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Fwd: Which external functions are called in a package?

2020-01-03 Thread Hans W Borchers
Jeff, the problem is:
There I see the packages that depend on mine, but not which functions are used
Or maybe I misunderstood your comment.

On Fri, 3 Jan 2020 at 22:49, Jeff Newmiller  wrote:
>
> If you are so lucky as to have this problem, perhaps you could take a look at 
> the reverse dependencies on your packages' CRAN web page.
>
> On January 3, 2020 1:45:42 PM PST, Hans W Borchers  
> wrote:
> >You are absolutely right. I forgot that there is a difference between
> >the unpacked and the installed directory of a package. The
> >documentation of the *pkgapi* package in development is quite scarce
> >and does not mention the details. Thanks for the tip.
> >
> >--HW
> >
> >PS: Still I would like to learn about other approaches for listing
> >external calls of a package. This must be a general problem for
> >package developers whose packages are depended on by many other CRAN
> >packages.
> >
> >
> >On Fri, 3 Jan 2020 at 20:19, Duncan Murdoch 
> >wrote:
> >>
> >> I'm not really familiar with pkgapi, but I believe the first argument
> >is
> >> to the source directory for a package.  It looks as though you are
> >> pointing to the installed copy of it.
> >>
> >> Duncan Murdoch
> >
> >__
> >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >https://stat.ethz.ch/mailman/listinfo/r-help
> >PLEASE do read the posting guide
> >http://www.R-project.org/posting-guide.html
> >and provide commented, minimal, self-contained, reproducible code.
>
> --
> Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Fwd: Which external functions are called in a package?

2020-01-03 Thread Jeff Newmiller
If you are so lucky as to have this problem, perhaps you could take a look at 
the reverse dependencies on your packages' CRAN web page.

On January 3, 2020 1:45:42 PM PST, Hans W Borchers  wrote:
>You are absolutely right. I forgot that there is a difference between
>the unpacked and the installed directory of a package. The
>documentation of the *pkgapi* package in development is quite scarce
>and does not mention the details. Thanks for the tip.
>
>--HW
>
>PS: Still I would like to learn about other approaches for listing
>external calls of a package. This must be a general problem for
>package developers whose packages are depended on by many other CRAN
>packages.
>
>
>On Fri, 3 Jan 2020 at 20:19, Duncan Murdoch 
>wrote:
>>
>> I'm not really familiar with pkgapi, but I believe the first argument
>is
>> to the source directory for a package.  It looks as though you are
>> pointing to the installed copy of it.
>>
>> Duncan Murdoch
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Fwd: Which external functions are called in a package?

2020-01-03 Thread Hans W Borchers
You are absolutely right. I forgot that there is a difference between
the unpacked and the installed directory of a package. The
documentation of the *pkgapi* package in development is quite scarce
and does not mention the details. Thanks for the tip.

--HW

PS: Still I would like to learn about other approaches for listing
external calls of a package. This must be a general problem for
package developers whose packages are depended on by many other CRAN
packages.


On Fri, 3 Jan 2020 at 20:19, Duncan Murdoch  wrote:
>
> I'm not really familiar with pkgapi, but I believe the first argument is
> to the source directory for a package.  It looks as though you are
> pointing to the installed copy of it.
>
> Duncan Murdoch

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.