sbegueria / SPEI

An R package for computing the Standardized Precipitation-Evapotranspiration Index (SPEI), Penman-Monteith and other reference evapotranspiration, SPI, etc.
78 stars 34 forks source link

Warning message when loading the package #71

Closed evarifa closed 1 year ago

evarifa commented 1 year ago

Hi,

When I load the package I see the following warning message:

> library(SPEI)
# Package SPEI (1.8) loaded [try SPEINews()].
Warning messages:
1: replacing previous import ‘lmom::cdfgam’ by ‘lmomco::cdfgam’ when loading ‘SPEI’ 
2: replacing previous import ‘lmom::cdfpe3’ by ‘lmomco::cdfpe3’ when loading ‘SPEI’ 

I think this is an error since in the NAMESPACE file you are loading importFrom(lmomco,cdfpe3) here but inside the function spei, in this line you are using the same function from the package 'lmom'.

Could you correct this in order that the warning doesn't appear?

Thank you,
Eva

evarifa commented 1 year ago

I close the issue since with installing the newest version this doesn't happen.