[R-sig-Geo] Question concerning the SDM package in R

Babak Naimi n@|m|@b @end|ng |rom gm@||@com
Tue Jun 29 13:52:50 CEST 2021


Hi,

It suggests you do not have the required packages for those methods on your
machine. You can first simply run the following code and then try yours:

sdm::installAll()

Hope this helps,

Best wishes,
Babak

On Tue, Jun 29, 2021 at 1:00 PM <r-sig-geo-request using r-project.org> wrote:

>
> Date: Mon, 28 Jun 2021 19:18:01 +0100
> From: Francisco Borges <franciscoomcborges using gmail.com>
> To: r-sig-geo using r-project.org
> Subject: [R-sig-Geo] Question concerning the SDM package in R
> Message-ID:
>         <
> CA+BtNgownxRVp_o47_A5p1u_2ZCjhSoK1Dv8qZemdHi2hf7_bA using mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello all!
>
> I have encountered an issue with the SDM package by Babak Naimi and Miguel
> Araújo in R. Specifically, when re-running a model which I had successfully
> run a couple of months ago, I get the following error:
>
> «Error in sdmSetting(test.percent = 30, replication = c("sub","boot",  :
> methods rf and brt do not exist!»
>
> This is the code I'm inputting:
>
> model <-
>   sdm(
>     occ ~.,
>     data = dalter,
>     methods = c('glm','rf','brt'),
>     test.p = 30,
>     replication = c("sub", "boot", "cv"),
>     n.folds = 4,
>     n = 5
>   )
>
> This is weird. It is stating that the sdm package does not have boosted
> regression tree nor random forest as an available method. I have
> reinstalled the package through CRAN in R today.
>
> Any suggestions?
>
> Thank you in advance,
>
> *Francisco Borges*
>
> MARE – Marine and Environmental Sciences Centre
>
> Laboratório Marítimo da Guia - Faculdade de Ciências da Universidade de
> Lisboa
>
>
> Av. Nossa Senhora do Cabo, 939
>
> 2750-374 Cascais, Portugal
>
> Tel: +351 214 869 211
>
>
>
>
> publons.com/a/1504585/
> orcid.org/0000-0002-3911-0421
> http://www.mare-centre.pt/pt/user/8232
> https://www.cienciavitae.pt//pt/B814-9E8E-F556
>
>         [[alternative HTML version deleted]]
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
> ------------------------------
>
> End of R-sig-Geo Digest, Vol 214, Issue 14
> ******************************************

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list