Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing argument in compareRaster() for check() functions #11

Closed
andrewmarx opened this issue Nov 9, 2020 · 0 comments
Closed

Missing argument in compareRaster() for check() functions #11

andrewmarx opened this issue Nov 9, 2020 · 0 comments

Comments

@andrewmarx
Copy link
Owner

samc/R/check.R

Line 104 in 13b89f7

raster::compareRaster(a@map, b)

The above code is missing values = TRUE as an argument for compareRaster(). This results in checks for the occ parameter in various metrics to not catch mismatched NA cells, potentially leading to a crash (but not always). This issue will also occur if users attempt to directly use variants of the check() function where the first argument is a samc object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant