Skip to content

Commit 151fbbf

Browse files
Copilotd-morrison
andcommitted
Replace globalVariables with .data pronoun per tidyverse guidelines
Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
1 parent 4e6b489 commit 151fbbf

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

R/curve_app_server.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ curve_app_server = function(input, output, session)
1212
alpha = input$alpha |> exp10(),
1313
rho = input$rho,
1414
t1 = t1f(
15-
mu_y = mu_y,
16-
mu_b = mu_b,
17-
gamma = gamma,
18-
y0 = y0,
19-
b0 = b0),
15+
mu_y = .data$mu_y,
16+
mu_b = .data$mu_b,
17+
gamma = .data$gamma,
18+
y0 = .data$y0,
19+
b0 = .data$b0),
2020
y1 = y1f(
21-
y0 = y0,
22-
mu_y = mu_y,
23-
t1 = t1)
21+
y0 = .data$y0,
22+
mu_y = .data$mu_y,
23+
t1 = .data$t1)
2424
)
2525
}|> reactive()
2626

R/utils.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,3 @@
103103

104104
invisible(NULL)
105105
}
106-
107-
# Declare global variables used in curve_app functions to avoid R CMD check NOTEs
108-
utils::globalVariables(c("mu_y", "mu_b", "y0", "b0", "t1"))

0 commit comments

Comments
 (0)