You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (any(stringr::str_detect(model$code, 'NM-TRAN MESSAGES'))) {
, the code searches for the magic string NM-TRAN MESSAGES.
Some software uses NMTRAN MESSAGES instead (note absence of the hyphen).
The package would be much more flexible if all magic strings can be put into an option. That way, I could simply execute options(xpose.magic.nmtranMessages = "NMTRAN MESSAGES"), instead of adapting the LST file manually or adapting the xpose code.
The text was updated successfully, but these errors were encountered:
Thanks for the input @rfaelens. Do you expect many more variations of NMTRAN vs NM-TRAN? If not I would simply add the hyphen as optional in the regular expression.
In
xpose/R/read_nm_model.R
Line 100 in 3e67b39
NM-TRAN MESSAGES
.Some software uses
NMTRAN MESSAGES
instead (note absence of the hyphen).The package would be much more flexible if all magic strings can be put into an option. That way, I could simply execute
options(xpose.magic.nmtranMessages = "NMTRAN MESSAGES")
, instead of adapting the LST file manually or adapting the xpose code.The text was updated successfully, but these errors were encountered: