Skip to content

Commit

Permalink
fix lintr issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Liming Li (李黎明) committed Jul 10, 2024
1 parent f1a60b6 commit 45e0bbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/interop-emmeans.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ recover_data.mmrm <- function(object, ...) { # nolint
# subject_var is excluded because it should not contain fixed effect.
# visit_var is not excluded because emmeans can provide marginal mean
# by each visit if visit_var is not spatial.
model_frame <- stats::model.frame(object, include = c(if (!object$formula_parts$is_spatial) "visit_var", "response_var", "group_var"))
model_frame <- stats::model.frame(
object,
include = c(if (!object$formula_parts$is_spatial) "visit_var", "response_var", "group_var")
)
model_terms <- stats::delete.response(stats::terms(model_frame))
emmeans::recover_data(
fun_call,
Expand Down

0 comments on commit 45e0bbc

Please sign in to comment.