Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint updates #312

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading