Closed tjmills closed 6 years ago
Running your example works for me. Are you on the latest version?
search() # hydroGOF is not attached
## [1] ".GlobalEnv" "tools:rstudio" "package:stats"
## [4] "package:graphics" "package:grDevices" "package:utils"
## [7] "package:datasets" "package:methods" "Autoloads"
## [10] "package:base"
sim <- runif(1:1000)
obs <- runif(1:1000)
gof(sim=sim,obs=obs)
## Error in gof(sim = sim, obs = obs): could not find function "gof"
hydroGOF::gof(sim=sim, obs=obs)
## [,1]
## ME -0.01
## MAE 0.32
## MSE 0.16
## RMSE 0.40
## NRMSE % 139.30
[...]
R.version.string
## [1] "R version 3.4.1 (2017-06-30)"
packageVersion("hydroGOF")
## [1] '0.3.10'
Hi sorry for the super late response, I got pulled off on other things.
This example did run for me as well just now on my mac, but my issue was on our compute nodes. I will take a look at this more closely on that system and see what's up.
I am guessing this is an issue with the namespace exports. When running
gof
with explicit call to namespace usinghydroGOF::gof()
the function fails with the following error:Here is a reproducible example: