rspatial / dismo

R dismo package
GNU General Public License v3.0
22 stars 11 forks source link

Suppress massage when running maxent() #17

Closed sgvignali closed 2 years ago

sgvignali commented 3 years ago

The message "This is MaxEnt version x.x.x" is printed every time a model is trained, even when using silent = TRUE. When several models are trained in a for loop this is a bit annoying and it would be nice to be able to silence them.

I think you just need to pass the argument silent to the maxent() function on line 297: https://github.com/rspatial/dismo/blob/master/R/maxent.R#L294-L297

rhijmans commented 2 years ago

Thanks, that message is now always suppressed; unless you run maxent()