famuvie / breedR

Statistical methods for forest genetic resources analysts
http://famuvie.github.io/breedR/
GNU General Public License v3.0
31 stars 24 forks source link

Implement interface for OPTIONS #50

Closed famuvie closed 8 years ago

famuvie commented 9 years ago

Include a new argument options (or perhaps control.reml) of the function remlf90() that passes directly the content to the OPTIONS of the (AI)REML programs. This allows to manually take advantage of some options such as maxrounds.

famuvie commented 9 years ago

As a workaround, we can use the following hack. For example, say that we wanted to use the OPTION maxrounds 0 for AIREML,

library(breedR)
remlf90 <- eval(parse(text = gsub('"sol se"', '"sol se", "maxrounds 0"', deparse(remlf90))))
environment(remlf90) <- environment(breedR::remlf90)

afterwards, rm(remlf90) recovers the regular operation.