Skip to content

Commit

Permalink
Merge pull request #146 from nlmixr2/142-lotri-issue
Browse files Browse the repository at this point in the history
Fix xml
  • Loading branch information
mattfidler committed Jun 23, 2023
2 parents c6be752 + 6090425 commit 2145774
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/xml.R
Expand Up @@ -13,10 +13,10 @@
.names <- xml2::xml_attrs(xml2::xml_find_all(xml, "nm:row"))
.inputNames <- setNames(unlist(.names), NULL)
.finalNames <- .replaceNmDimNames(.inputNames)

.cov <- try(eval(parse(text=paste0("lotri({", paste(.finalNames, collapse = " + "),
.cov <- parse(text=paste0("lotri({", paste(.finalNames, collapse = " + "),
"~", deparse1(.cov),
"}"))), silent=TRUE)
"})"))
.cov <- try(eval(.cov), silent=TRUE)
if (inherits(.cov, "try-error")) {
.minfo("try to get covariance a different method (slower)")
.env <- new.env(parent=emptyenv())
Expand Down

0 comments on commit 2145774

Please sign in to comment.