Skip to content

Commit

Permalink
Merge pull request #312 from billdenney/linted
Browse files Browse the repository at this point in the history
Lint updates
  • Loading branch information
billdenney committed Jul 31, 2024
2 parents e470188 + 35a5b9c commit c4e7d68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/interpolate.conc.R
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ extrapolate.conc <- function(conc, time, time.out,
if (auc.type %in% "aucinf") {
# If AUCinf is requested, extrapolate using the half-life
ret <- extrapolate_conc_lambdaz(clast=clast, lambda.z=lambda.z, tlast=tlast, time_out=time.out)
} else if (auc.type %in% "auclast" |
(auc.type %in% "aucall" &
} else if (auc.type %in% "auclast" ||
(auc.type %in% "aucall" &&
tlast == max(data$time))) {
# If AUClast is requested or AUCall is requested and there are
# no BLQ at the end, we are already certain that we are after
Expand Down
2 changes: 1 addition & 1 deletion R/sparse.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' @family Sparse Methods
#' @export
as_sparse_pk <- function(conc, time, subject) {
if (is.data.frame(conc) & missing(time) & missing(subject)) {
if (is.data.frame(conc) && missing(time) && missing(subject)) {
time <- conc$time
subject <- conc$subject
conc <- conc$conc
Expand Down

0 comments on commit c4e7d68

Please sign in to comment.