-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump
biomod2
version requirement due to their renamed options function
biomod2 v4.2-5 [2024] renamed `BIOMOD_ModelingOptions()` to `bm_ModelingOptions()` <https://github.com/biomodhub/biomod2/releases/tag/v4.2-5> FYI @CeresBarros
- Loading branch information
Showing
3 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ utils::globalVariables(c( | |
## BIOMOD FUNCTION WRAPPERS USED TO ESTIMATE SEP | ||
## for caching, looping and parallelizing | ||
|
||
#' BIOMOD_Modeling wrapper | ||
#' `BIOMOD_Modeling` wrapper | ||
#' | ||
#' @param sp character of species name to subset `responseVarData` table | ||
#' | ||
|
@@ -25,7 +25,7 @@ utils::globalVariables(c( | |
#' @param predictorVarsData environmental data. | ||
#' | ||
#' @param responseVarData a data.table or list of data.tables with environmental data. | ||
#' If a list, it should be named according to `sp`, for subsetting.#' | ||
#' If a list, it should be named according to `sp`, for subsetting. | ||
#' | ||
#' @param dir.name passed to [biomod2::BIOMOD_FormatingData] | ||
#' | ||
|
@@ -44,8 +44,7 @@ biomodModelingWrapper <- function(sp, responseVar, responseVarData, predictorVar | |
...) { | ||
if (requireNamespace("biomod2", quietly = TRUE)) { | ||
if (is.null(bm.options)) { | ||
bm.options <- biomod2::BIOMOD_ModelingOptions(GLM = list(type = "simple"), | ||
GAM = list(k = 2)) | ||
bm.options <- biomod2::bm_ModelingOptions(GLM = list(type = "simple"), GAM = list(k = 2)) | ||
This comment has been minimized.
Sorry, something went wrong.
CeresBarros
Member
|
||
} | ||
## Checks ------------------ | ||
if (is(responseVar, "list") & is.null(names(responseVar))) { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 comments
on commit 9d4aeb9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these changes are on a separate branch, so we can update after you have a chance to revisit the changes you made in your fork
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, just notice that this branch is currently broken then
I don't think this is a good idea for now as i don't have time to update my fork