hzambran / hydroGOF

Goodness-of-fit functions for comparison of simulated and observed hydrological time series
https://CRAN.R-project.org/package=hydroGOF
39 stars 13 forks source link

Error: 'wNSE' is not an exported object from 'namespace:hydroGOF' #21

Closed shulele closed 5 months ago

shulele commented 9 months ago

I am trying to use the wNSE() function but have failed. The version of hydroGOF is ‘0.5.5’.

Code :


library(hydroGOF)
packageVersion("hydroGOF")
##################
# Example 1: basic ideal case
obs <- 1:10
sim <- 1:10
hydroGOF::wNSE(sim, obs)

Error:

Error: 'wNSE' is not an exported object from 'namespace:hydroGOF'

hzambran commented 7 months ago

The latest version of hydroGOF is 0.5-4, and I don't get any error when running your code. Can you supply a different example?