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

Nuria Perez-Zanon nur|@@perez @end|ng |rom b@c@e@
Fri Sep 18 18:59:18 CEST 2020


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)
      exp <- lonlat_data$exp
      obs <- lonlat_data$obs
      res <- CST_QuantileMapping(exp, obs)

This fails:
      library(CSTools)
      exp <- lonlat_data$exp
      obs <- lonlat_data$obs
      res <- CST_QuantileMapping(exp, obs)

The DESCRIPTION sets:
Imports:
qmap,

The function sets:
|#'@import qmap|  

The NAMESPACE sets:
|import(qmap) I guess I am missing something to check but I don't know 
what. Thanks for your help. Núria |

El 18/9/20 a las 18:52, Dirk Eddelbuettel escribió:
> 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 DESCRIPTION (and likely NAMESPACE). See "Writing R
> Extensions" for all the details.
>
> Dirk
>


http://bsc.es/disclaimer
	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list