Skip to content

Commit

Permalink
Merge pull request #289 from nlmixr2/288-cran-machine-errors
Browse files Browse the repository at this point in the history
288 cran machine errors
  • Loading branch information
mattfidler committed Sep 22, 2022
2 parents 3954abf + b28003c commit bae1b7a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Expand Up @@ -70,7 +70,8 @@ Suggests:
rsconnect,
devtools,
patchwork,
nlmixr2data
nlmixr2data,
lifecycle
Imports:
PreciseSums (>= 0.3),
Rcpp (>= 0.12.3),
Expand Down
6 changes: 5 additions & 1 deletion R/ui-bind.R
Expand Up @@ -6,6 +6,9 @@
#' @author Matthew L. Fidler
#' @export
#' @examples
#'
#' \donttest{
#'
#' ocmt <- function() {
#' ini({
#' tka <- exp(0.45) # Ka
Expand Down Expand Up @@ -43,12 +46,13 @@
#' }
#'
#' rxAppendModel(ocmt %>% model(ceff=cp,append=TRUE), idr)
#'
#' }
#'
rxAppendModel <- function(model1, model2) {
model1 <- assertRxUi(model1)
model1 <- .copyUi(model1) # so modifications do not affect first model
model2 <- assertRxUi(model2)
model2 <- .copyUi(model2)
.ini1 <- model1$iniDf
.ini2 <- model2$iniDf
.bind <- intersect(c(model1$mv0$lhs, model1$mv0$state), model2$allCovs)
Expand Down
5 changes: 4 additions & 1 deletion man/rxAppendModel.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bae1b7a

Please sign in to comment.