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

2021-02-22 Thread Iñaki Ucar
On Mon, 22 Feb 2021 at 11:55, Gábor Csárdi wrote: > > On Sun, Feb 21, 2021 at 3:47 PM 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

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

2021-02-22 Thread Georgi Boshnakov
, CRAN accepts a package with that note. Georgi -Original Message- From: Iñaki Ucar Sent: 22 February 2021 10:51 To: Georgi Boshnakov Cc: Duncan Murdoch ; Gábor Csárdi ; R Package Development Subject: Re: [R-pkg-devel] Support for several versions of another package On Mon, 22 Feb 2021 at

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

2021-02-22 Thread Gábor Csárdi
On Sun, Feb 21, 2021 at 3:47 PM 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) { >

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

2021-02-22 Thread Iñaki Ucar
oshnakov > > > -Original Message- > From: R-package-devel On Behalf Of > Duncan Murdoch > Sent: 21 February 2021 19:43 > To: Gábor Csárdi > Cc: R Package Development > Subject: Re: [R-pkg-devel] Support for several versions of another package > > On 21/

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

2021-02-22 Thread Georgi Boshnakov
om: R-package-devel On Behalf Of Duncan Murdoch Sent: 21 February 2021 19:43 To: Gábor Csárdi Cc: R Package Development Subject: Re: [R-pkg-devel] Support for several versions of another package On 21/02/2021 12:17 p.m., Gábor Csárdi wrote: > On Sun, Feb 21, 2021 at 6:05 PM Duncan Murdoch &

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

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

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 {