Skip to content

Commit

Permalink
Update News for version 4.2-5
Browse files Browse the repository at this point in the history
  • Loading branch information
MayaGueguen committed May 3, 2024
1 parent b9192bc commit 63f195a
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 87 deletions.
16 changes: 8 additions & 8 deletions R/BIOMOD_Modeling.R
Original file line number Diff line number Diff line change
Expand Up @@ -471,14 +471,14 @@ BIOMOD_Modeling <- function(bm.format,
for (ii in vals) {
OPT.user@options[[mod]]@args.values[[ii]] <- val
}
} else if (all(grepl("_allRun", nam))){ #Check if the user create the options just for PA dataset
sep.name <- unlist(strsplit(mod,split = '[.]'))
cat("\n \n \t The options for",sep.name[1], "for '_PAx_allRun' will be given to all runs with PAx (_PAx_RUN1, _PAx_RUN2,...) \n")
for (run in vals){
PA.set <- grep("PA|allData", unlist(strsplit(run, "_")), value = T)
if (is.null(OPT.user@options[[mod]]@args.values[[paste0("_", PA.set, "_allRun")]])){
opt.default <- BIOMOD.options.dataset(mod = sep.name[1],typ = sep.name[2],pkg =sep.name[3], fun = sep.name[4], strategy = "default",
bm.format = bm.format, calib.lines = calib.lines)
} else if (all(grepl("_allRun", nam))) { #Check if the user create the options just for PA dataset
sep.name <- unlist(strsplit(mod, split = '[.]'))
cat("\n \n \t The options for", sep.name[1], "for '_PAx_allRun' will be given to all runs with PAx (_PAx_RUN1, _PAx_RUN2,...) \n")
for (run in vals) {
PA.set <- grep("PA|allData", unlist(strsplit(run, "_")), value = TRUE)
if (is.null(OPT.user@options[[mod]]@args.values[[paste0("_", PA.set, "_allRun")]])) {
opt.default <- BIOMOD.options.dataset(mod = sep.name[1], typ = sep.name[2], pkg =sep.name[3], fun = sep.name[4]
, strategy = "default", bm.format = bm.format, calib.lines = calib.lines)
OPT.user@options[[mod]]@args.values[[run]] <- opt.default@args.values[["_allData_allRun"]]
} else {
OPT.user@options[[mod]]@args.values[[run]] <- OPT.user@options[[mod]]@args.values[[paste0("_", PA.set, "_allRun")]]
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ devtools::install_github("biomodhub/biomod2", dependencies = TRUE)

### <i class="fas fa-envelope-open-text"></i> `biomod 4.2-5` - Modeling options & Tuning Update

**! `biomod2 4.2-5` is now available on GitHub !**
**! `biomod2 4.2-5` is now available on CRAN !**

`/!\` Please **feel free to indicate if you notice some strange new behaviors** !

Expand All @@ -70,7 +70,10 @@ devtools::install_github("biomodhub/biomod2", dependencies = TRUE)
#### <i class="fas fa-plus-square"></i> What is new ?

- `ModelsTable` and `OptionsBigboss` datasets (*note that improvement of bigboss modeling options is planned in near future*)
- [data preparation vignette](https://biomodhub.github.io/biomod2/articles/vignette_dataPreparation.html) has been created (*questions you should ask yourself before modeling*)
- 3 new vignettes have been created :
- [data preparation](https://biomodhub.github.io/biomod2/articles/vignette_dataPreparation.html) (*questions you should ask yourself before modeling*)
- [cross-validation](https://biomodhub.github.io/biomod2/articles/vignette_crossValidation.html) (*to prepare your own calibration / validation datasets*)
- [modeling options](https://biomodhub.github.io/biomod2/articles/vignette_dataPreparation.html) (*to help you navigate through the new way of parameterizing single models*)

<br/>

Expand Down
Loading

0 comments on commit 63f195a

Please sign in to comment.