[R-pkg-devel] Two compile questions

2021-02-21 Thread Karim Rahim
Hi, I'm in the process of incorporating some improvements that I pulled from github. I am getting a warning and a note. These occur when I run R CMD check --as-cran fftwtools_0.9-10.tar.gz 1. * checking whether package ‘fftwtools’ can be installed ... WARNING Found the following significant warn

Re: [R-pkg-devel] Support for several versions of another package

2021-02-21 Thread Duncan Murdoch
On 21/02/2021 12:17 p.m., Gábor Csárdi wrote: On Sun, Feb 21, 2021 at 6:05 PM Duncan Murdoch wrote: On 21/02/2021 9:47 a.m., Iñaki Ucar wrote: Hi, Let's say that pkgA uses pkgB::function1. Then, version 2 of pkgB removes function1 and exports function2 for the same functionality. So pkgA doe

Re: [R-pkg-devel] Support for several versions of another package

2021-02-21 Thread Gábor Csárdi
On Sun, Feb 21, 2021 at 6:05 PM Duncan Murdoch wrote: > > On 21/02/2021 9:47 a.m., Iñaki Ucar wrote: > > Hi, > > > > Let's say that pkgA uses pkgB::function1. Then, version 2 of pkgB > > removes function1 and exports function2 for the same functionality. So > > pkgA does something along these line

Re: [R-pkg-devel] Support for several versions of another package

2021-02-21 Thread Duncan Murdoch
On 21/02/2021 9:47 a.m., Iñaki Ucar wrote: Hi, Let's say that pkgA uses pkgB::function1. Then, version 2 of pkgB removes function1 and exports function2 for the same functionality. So pkgA does something along these lines: if (utils::packageVersion("pkgB") < 2) { pkgB::function1() } else {

[R-pkg-devel] Support for several versions of another package

2021-02-21 Thread Iñaki Ucar
Hi, Let's say that pkgA uses pkgB::function1. Then, version 2 of pkgB removes function1 and exports function2 for the same functionality. So pkgA does something along these lines: if (utils::packageVersion("pkgB") < 2) { pkgB::function1() } else { pkgB::function2() } I'd say that there's not