[R-pkg-devel] Dependency needs to be loaded manually even its specified in the package
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