Skip to content

Commit

Permalink
Remove at last sec
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Sep 24, 2024
1 parent ec4321e commit c35190d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion R/def2ini.R
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@
if (length(.in) > 0L) {
.coef <- .coef[-.in]
}
browser()
.pop <- c(list(quote(`{`)),
lapply(.n, function(n) {
.cur <- .var[[n]]
Expand Down Expand Up @@ -388,5 +387,13 @@
} else {
.ini <- .pop
}
.l <- which(vapply(seq_along(.ini),
function(i) {
.x <- .ini[[i]]
if (identical(.x, quote(`{`))) return(TRUE)
if (length(.x) <= 1) return(FALSE)
!identical(.x[[2]], quote(`rxRmVar`))
}, logical(1), USE.NAMES=FALSE))
.ini <- lapply(.l, function(i){.ini[[i]]})
as.call(c(list(quote(`ini`)), as.call(.ini)))
}

0 comments on commit c35190d

Please sign in to comment.