Error: Rmd -- Environmental space

97 views
Skip to first unread message

Eliecer E. Gutierrez

unread,
Nov 28, 2023, 10:15:37 PM11/28/23
to Wallace Ecological Modeling App

Hello everyone, 

I am researching the effect of climate change on deer (Odocoileus)

Please,


Quitting from lines 419-430 [unnamed-chunk-18] (wallace-session-2023-11-28.Rmd) Error in `image.default()`: ! no slot of name "pnt" for this object of class "SpatRaster" Backtrace: 1. ecospat::ecospat.plot.niche(...) 3. graphics::image.default(...) Execution halted


### Environmental space

Calculating the part of environmental space more densly populated by
species & the availability of environmental conditions in the background
for *ODOCOILEUS hemionus* & *ODOCOILEUS virginianus*

```{r}
# Create density grid
espace_occDens_Pc_Pm <- espace_occDens(
  sp.name1 = "ODOCOILEUS hemionus",
  sp.name2 = "ODOCOILEUS virginianus",
  pca = espace_pca_Pc_Pm)
# Plots
graphics::par(mfrow = c(1,2))
ecospat::ecospat.plot.niche(espace_occDens_Pc_Pm[["ODOCOILEUS hemionus"]],
                            title = "ODOCOILEUS hemionus")
ecospat::ecospat.plot.niche(espace_occDens_Pc_Pm[["ODOCOILEUS virginianus"]],
                            title = "ODOCOILEUS virginianus")
```

Thanks in advance,

Eliécer

Wallace Ecological Modeling App

unread,
Nov 29, 2023, 11:29:39 AM11/29/23
to Wallace Ecological Modeling App
Thank you for reporting this. We are aware of this issue and are in the process of fixing it. 
This issue is arising due to a bug in the ecospat package, we are making a workaround within Wallace that should be available soon. 

Eliecer E. Gutierrez

unread,
Nov 29, 2023, 5:02:01 PM11/29/23
to Wallace Ecological Modeling App
Thank you

--
You received this message because you are subscribed to the Google Groups "Wallace Ecological Modeling App" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wallaceEcoMo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wallaceEcoMod/df9a16ca-289f-4051-97c7-fcd674045136n%40googlegroups.com.

Bethany Johnson

unread,
Dec 8, 2023, 4:19:54 PM12/8/23
to Wallace Ecological Modeling App
Hello Eliécer,
Wallace v.2.1.1 is now on CRAN. Update your 'wallace' package, and this issue should be resolved.

Reply all
Reply to author
Forward
0 new messages