Skip to content

Commit

Permalink
Bugfix so models are properly updated within and between iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Raborn committed Dec 2, 2019
1 parent c7371b5 commit 8a4d32b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/Tabu_shortform.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ tabuShortForm <-

if (is.list(allItems)) {
included.items <-
stringr::str_extract_all(string = initialShortModel$model.syntax,
stringr::str_extract_all(string = unlist(strsplit(initialShortModel$model.syntax,
split = "\\n")),
pattern = paste0("(\\b", paste0(
paste0(unlist(allItems), collapse = "\\b)|(\\b"), "\\b)"
)))
Expand Down

0 comments on commit 8a4d32b

Please sign in to comment.