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

Use stable user interface in terra #16

Closed
auenoekologie opened this issue Sep 11, 2023 · 1 comment
Closed

Use stable user interface in terra #16

auenoekologie opened this issue Sep 11, 2023 · 1 comment

Comments

@auenoekologie
Copy link
Collaborator

auenoekologie commented Sep 11, 2023

The unstable user interface to terras SpatExtent class changed causing the following error in CRAN checks:

Running examples in ‘hydflood-Ex.R’ failed
The error most likely occurred in:

> ### Name: classifyToPNV
> ### Title: Function to reclassify flood durations to potential natural
> ###   vegetation
> ### Aliases: classifyToPNV
> 
> ### ** Examples
> 
> ## No test: 
>   cache <- tempdir()
>   options("hyd1d.datadir" = cache)
>   options("hydflood.datadir" = cache)
>   options(timeout = 200)
>   library(hydflood)
>   
>   # import the raster data and create a raster stack
>   c <- st_crs("EPSG:25833")
>   e <- ext(309000, 310000, 5749000, 5750000)
>   x <- hydSpatRaster(ext = e, crs = c)
Error in getDEM(filename = tempfile(fileext = ".tif"), ext = ext_int,  : 
  no slot of name "ptr" for this object of class "SpatExtent"
Calls: hydSpatRaster -> getDEM
Execution halted```


@auenoekologie
Copy link
Collaborator Author

Robert Hijmans fixed this initially with his pull request #15.

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