[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 19:03:30 CEST 2020


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 <edd using debian.org> 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 package. Rather, you declare dependency
>> relationsships via DESCRIPTION (and likely NAMESPACE). See "Writing R
>> Extensions" for all the details.
>>
> And here's the relevant section:
> https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Registering-S3-methods
>
> Best,
> Josh
>
>> Dirk
>>
>> --
>> https://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
>>
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
>


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



More information about the R-package-devel mailing list