Wallace 1.9.3-6 "Error in addLegend unused arguments" with Process Occs and Partition Occs --

165 views
Skip to first unread message

Durrell Kapan

unread,
Jul 22, 2022, 3:02:42 PM7/22/22
to Wallace Ecological Modeling App
Hi,

I'm using Wallace to work on ENM with a summer intern.  We found an error when Wallace tries to "addLegend" to Proccess Occs and Partition Occs outputs:

In "Proccess Occs"  when I click "Spatial Thin" it calculates, but does not display the results, Wallace crashes with a gray screen and I get this error in the console:

Warning: Error in addLegend: unused arguments (colors = c("red", "blue"), title = "Occ Records", labels = c("retained", "removed"), opacity = 1)

In "Partition Occs"  when I select any option and then click "Partition" it calculates but does not display the results, Wallace crashes with a gray screen and I get a similar error in the console:

Warning: Error in addLegend: unused arguments (colors = newColors, title = "Partition Groups", labels = sort(unique(occsGrp)), opacity = 1)

As these are all proper arguments ts to "leaflet::addLegend" perhaps this function is not receiving the map data from which to operate?  Looking over the GitHub code for poccs_thinOccs.R & part_spat.R doesn't reveal anything obvious.  

I was able to replicate this behavior with our custom GBIF dataset as well as generic data loaded from GBIF (1000 observations from Larus occidentalis) and got the exact same errors.

Do you have any suggestions for how to fix this error in the "addLegend" portion of the Shiny app?

For relevant session information see below.

Thanks for making such a great app!

All the best,

Durrell 

> sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.4

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base    

other attached packages:
 [1] glue_1.6.2        fields_14.0       viridis_0.6.2    
 [4] viridisLite_0.4.0 spam_2.9-0        wallace_1.9.3-6  
 [7] leaflet_2.1.1     shiny_1.7.2       raster_3.5-21    
[10] sp_1.5-0         


 

Wallace Ecological Modeling App

unread,
Jul 25, 2022, 12:56:58 PM7/25/22
to Wallace Ecological Modeling App
Hi Durrell,
First, thank you for providing so much useful information. I am not having the issue you are reporting and all the packages I would have suggested you update (leaflet, shiny, sp, wallace) are all the same versions as mine.
The only difference I found is your R is more up-to-date.

Is anyone else using R version 4.2.0 (2022-04-22) having this issue???

I have seen this error message before when a package updated its function names, but I don't know why it would be happening for both process occs and partition occs when it seems like a leaflet issue.
If you want, you can try to run the CRAN version of Wallace (v1.1.3) and see if the issue is happening. In the meantime, I will pass the error onto another team developer to see if she/he can troubleshoot.

-Bethany

Durrell Kapan

unread,
Jul 25, 2022, 4:18:32 PM7/25/22
to Wallace Ecological Modeling App
Hi,

Thanks, Bethany, your email prompted me to try to replicate your experience by starting again from a clean slate and installing all the supporting packages one more time. I'm almost embarrassed to say that the two modules I was having difficulty with WORKED!

I will keep an eye out when I help others use wallace but it looks like there was a supporting package glitch, now that all those are reinstalled everything is great.

Thanks for the excellent Shiny app.

Best,

Durrell 



--
You received this message because you are subscribed to a topic in the Google Groups "Wallace Ecological Modeling App" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wallaceEcoMod/EmErM0HgXJg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wallaceEcoMo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wallaceEcoMod/1715c55f-e305-4833-907c-5f81659f396dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages