Skip to content

Commit 4e29c92

Browse files
committed
remove terms with | from stanova_samples
1 parent a6d55dc commit 4e29c92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/stanova_samples.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ stanova_samples.stanova <- function(
4949
# if (length(terms[ !(terms %in% terms2)]) > 0)
5050
# warning("Terms ", terms[ !(terms %in% terms2)], " not in model.")
5151
terms_chr <- terms[ terms %in% terms_chr]
52+
} else {
53+
terms_chr <- terms_chr[!grepl("\\|", terms_chr)]
5254
}
5355
term2 <- strsplit(terms_chr, split = ":")
5456
names(term2) <- terms_chr

0 commit comments

Comments
 (0)