babaknaimi / sdm

sdm is an extensible framework to develop species distributions models using individual and community-based approaches, generate ensembles of models, evaluate the models, and predict species potential distributions in space and time.
20 stars 5 forks source link

Problem with gui function #11

Closed jfberner closed 2 years ago

jfberner commented 2 years ago

It seems that the gui function has broken due to a deprecated dependency. I have not found any help for this, so I'm posting it here.

Here's the code:

d.eurasia <- sdmData(formula = species~. , train = sp.eur, predictors = env.eurasia, bg = list(n=204), method = 'gRandom') # 204 = nocc sp.eur

m.eurasia <- sdm(formula = s.scrofa~.,data = d.eurasia, methods = c('bioclim','mahal.dismo','domain.dismo','maxent','svm','brt'), replication = c('boot') , n = 10)

gui(m.eurasia)

and this is what I get from the last line

The `name` provided ('line-chart') is deprecated in Font Awesome 5:
* please consider using 'chart-line' or 'fas fa-chart-line' instead
* use the `verify_fa = FALSE` to deactivate these messages
The `name` provided ('arrows-h') is deprecated in Font Awesome 5:
* please consider using 'arrows-alt-h' or 'fas fa-arrows-alt-h' instead
* use the `verify_fa = FALSE` to deactivate these messages
Error in buildTabset(..., ulClass = paste0("nav nav-", type), id = id,  : 
  Tabs should all be unnamed arguments, but some are named: position

No errors with anything else, predict and ensemble work fine with the output of the sdm function, it seems the problem is just the gui() dependencies.

I've tried updating all my packages and still get the error. I'm running RStudio ver.1.4.1106, and this is the output of "version" platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 0.4
year 2021
month 02
day 15
svn rev 80002
language R
version.string R version 4.0.4 (2021-02-15) nickname Lost Library Book

Appreciate any help :)

babaknaimi commented 2 years ago

Hi, would you please install the new version from GitHub to see if the issue is resolved?

jfberner commented 2 years ago

Hello, and thank you for the reply.

I reinstalled it from git this morning, and ran installAll(), and got the following error upon running the gui()

Loading required package: shiny Loading required package: shinyBS Thename` provided ('arrows-h') is deprecated in Font Awesome 5:

Seems like the problem remains.

babaknaimi commented 2 years ago

Give it another try, hopefully it is fixed in the new version on GitHub. Thanks!

jfberner commented 2 years ago

All is working now, thank you so much for the support!