Skip to content

Commit

Permalink
Add new test from dismo to check maxent
Browse files Browse the repository at this point in the history
  • Loading branch information
sgvignali committed Nov 19, 2020
1 parent e9966f8 commit f21451f
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion R/SDMmodel2MaxEnt.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#' # Train a Maxent model
#' # The next line checks if Maxent is correctly configured but you don't need
#' # to run it in your script
#' if (checkMaxentInstallation(verbose = FALSE)) {
#' if (dismo::maxent(silent = TRUE)) {
#' model <- train(method = "Maxent", data = data, fc = "l")
#'
#' dismo_model <- SDMmodel2MaxEnt(model)
Expand Down
2 changes: 1 addition & 1 deletion R/maxentTh.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#' # Train a Maxent model
#' # The next line checks if Maxent is correctly configured but you don't need
#' # to run it in your script
#' if (checkMaxentInstallation(verbose = FALSE)) {
#' if (dismo::maxent(silent = TRUE)) {
#' model <- train(method = "Maxent", data = data, fc = "l")
#' maxentTh(model)
#' }
Expand Down
2 changes: 1 addition & 1 deletion R/maxentVarImp.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#' # Train a Maxent model
#' # The next line checks if Maxent is correctly configured but you don't need
#' # to run it in your script
#' if (checkMaxentInstallation(verbose = FALSE)) {
#' if (dismo::maxent(silent = TRUE)) {
#' model <- train(method = "Maxent", data = data, fc = "l")
#' maxentVarImp(model)
#' }
Expand Down
2 changes: 1 addition & 1 deletion R/reduceVar.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
#' # Train a Maxent model
#' # The next line checks if Maxent is correctly configured but you don't need
#' # to run it in your script
#' if (checkMaxentInstallation(verbose = FALSE)) {
#' if (dismo::maxent(silent = TRUE)) {
#' model <- train(method = "Maxent", data = train, fc = "lq")
#'
#' # Remove all variables with percent contribution lower than 2%
Expand Down
2 changes: 1 addition & 1 deletion R/train.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
#' ## Train a Maxent model
#' # The next line checks if Maxent is correctly configured but you don't need
#' # to run it in your script
#' if (checkMaxentInstallation(verbose = FALSE)) {
#' if (dismo::maxent(silent = TRUE)) {
#' model <- train(method = "Maxent", data = data, fc = "l", reg = 1.5,
#' iter = 700)
#'
Expand Down
2 changes: 1 addition & 1 deletion R/varSel.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
#' # Train a model
#' # The next line checks if Maxent is correctly configured but you don't need
#' # to run it in your script
#' if (checkMaxentInstallation(verbose = FALSE)) {
#' if (dismo::maxent(silent = TRUE)) {
#' model <- train(method = "Maxent", data = train, fc = "l")
#' vs <- varSel(model, metric = "tss", bg4cor = bg, test = test, cor_th = 0.7,
#' use_pc = TRUE)
Expand Down
2 changes: 1 addition & 1 deletion man/SDMmodel2MaxEnt.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/maxentTh.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/maxentVarImp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/reduceVar.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/train.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/varSel.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f21451f

Please sign in to comment.