Re: [R-pkg-devel] Dependency needs to be loaded manually even its specified in the package

2020-09-18 Thread Nuria Perez-Zanon
Thanks Duncan for look at this. I will avoid to invent a new object system. Best, Núria El 18/9/20 a las 19:13, Duncan Murdoch escribió: On 18/09/2020 12:38 p.m., Nuria Perez-Zanon wrote: Dear all, I am maintaining a package call CSTools which is aimed for post-processing climate

Re: [R-pkg-devel] Dependency needs to be loaded manually even its specified in the package

2020-09-18 Thread Duncan Murdoch
On 18/09/2020 12:52 p.m., Dirk Eddelbuettel wrote: On 18 September 2020 at 18:38, Nuria Perez-Zanon wrote: | I am maintaining a package call CSTools which is aimed for | post-processing climate simulations. [...] |     library(CSTools) |     library(qmap) You never use library() in a

Re: [R-pkg-devel] Dependency needs to be loaded manually even its specified in the package

2020-09-18 Thread Duncan Murdoch
On 18/09/2020 12:38 p.m., Nuria Perez-Zanon wrote: Dear all, I am maintaining a package call CSTools which is aimed for post-processing climate simulations. The package is already published on CRAN with all dependencies correctly state in DESCRIPTION, NAMESPACE and roxygen2 headers.

Re: [R-pkg-devel] Dependency needs to be loaded manually even its specified in the package

2020-09-18 Thread Nuria Perez-Zanon
Oh! Thanks, David. I was almost crazy. :D I'll try it! Best whishes, Núria El 18/9/20 a las 19:07, David Kepplinger escribió: > Hi Núria, > > I've never used qmap, but looking at the source code it seems it's not > using S3 or S4 methods in `doQmap()` but is looking for the proper >

Re: [R-pkg-devel] Dependency needs to be loaded manually even its specified in the package

2020-09-18 Thread Nuria Perez-Zanon
Thanks, Jost. I don't know where to set this S3method(print, foo) but I will look at this in  depth. Best, Núria El 18/9/20 a las 18:57, Joshua Ulrich escribió: > On Fri, Sep 18, 2020 at 11:56 AM Dirk Eddelbuettel wrote: >> >> On 18 September 2020 at 18:38, Nuria Perez-Zanon wrote: >> | I am

Re: [R-pkg-devel] Dependency needs to be loaded manually even its specified in the package

2020-09-18 Thread David Kepplinger
Hi Núria, I've never used qmap, but looking at the source code it seems it's not using S3 or S4 methods in `doQmap()` but is looking for the proper method using `exists()`. Given that your package doesn't import the required function, it's not found by `exists()` and the `doQmap()` function

Re: [R-pkg-devel] Dependency needs to be loaded manually even its specified in the package

2020-09-18 Thread Nuria Perez-Zanon
Hi Dirk, Thanks for your comment. Maybe I haven't been enough clear. The package declares all the necessary dependencies correctly following the guidelines you provide. I am only able to detect the problem by running an example: This works: library(CSTools)     library(qmap)

Re: [R-pkg-devel] Dependency needs to be loaded manually even its specified in the package

2020-09-18 Thread Joshua Ulrich
On Fri, Sep 18, 2020 at 11:56 AM Dirk Eddelbuettel wrote: > > > On 18 September 2020 at 18:38, Nuria Perez-Zanon wrote: > | I am maintaining a package call CSTools which is aimed for > | post-processing climate simulations. > [...] > | library(CSTools) > | library(qmap) > > You never

Re: [R-pkg-devel] Dependency needs to be loaded manually even its specified in the package

2020-09-18 Thread Dirk Eddelbuettel
On 18 September 2020 at 18:38, Nuria Perez-Zanon wrote: | I am maintaining a package call CSTools which is aimed for | post-processing climate simulations. [...] |     library(CSTools) |     library(qmap) You never use library() in a package. Rather, you declare dependency relationsships via

[R-pkg-devel] Dependency needs to be loaded manually even its specified in the package

2020-09-18 Thread Nuria Perez-Zanon
Dear all, I am maintaining a package call CSTools which is aimed for post-processing climate simulations. The package is already published on CRAN with all dependencies correctly state in DESCRIPTION, NAMESPACE and roxygen2 headers. However, when using one specific function which depends on