Skip to content

Commit 3277904

Browse files
committed
quote stats::gaussian
1 parent 2fe34ab commit 3277904

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

R/linear_reg_data.R

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ linear_reg_lm_data <-
3636
func = c(fun = "predict"),
3737
args =
3838
list(
39-
object = quote(object$fit),
40-
newdata = quote(new_data),
39+
object = expr(object$fit),
40+
newdata = expr(new_data),
4141
type = "response"
4242
)
4343
),
@@ -51,10 +51,10 @@ linear_reg_lm_data <-
5151
func = c(fun = "predict"),
5252
args =
5353
list(
54-
object = quote(object$fit),
55-
newdata = quote(new_data),
54+
object = expr(object$fit),
55+
newdata = expr(new_data),
5656
interval = "confidence",
57-
level = quote(level),
57+
level = expr(level),
5858
type = "response"
5959
)
6060
),
@@ -68,10 +68,10 @@ linear_reg_lm_data <-
6868
func = c(fun = "predict"),
6969
args =
7070
list(
71-
object = quote(object$fit),
72-
newdata = quote(new_data),
71+
object = expr(object$fit),
72+
newdata = expr(new_data),
7373
interval = "prediction",
74-
level = quote(level),
74+
level = expr(level),
7575
type = "response"
7676
)
7777
),
@@ -80,8 +80,8 @@ linear_reg_lm_data <-
8080
func = c(fun = "predict"),
8181
args =
8282
list(
83-
object = quote(object$fit),
84-
newdata = quote(new_data)
83+
object = expr(object$fit),
84+
newdata = expr(new_data)
8585
)
8686
)
8787
)
@@ -104,19 +104,19 @@ linear_reg_glmnet_data <-
104104
func = c(fun = "predict"),
105105
args =
106106
list(
107-
object = quote(object$fit),
108-
newx = quote(as.matrix(new_data)),
107+
object = expr(object$fit),
108+
newx = expr(as.matrix(new_data)),
109109
type = "response",
110-
s = quote(object$spec$args$penalty)
110+
s = expr(object$spec$args$penalty)
111111
)
112112
),
113113
raw = list(
114114
pre = NULL,
115115
func = c(fun = "predict"),
116116
args =
117117
list(
118-
object = quote(object$fit),
119-
newx = quote(as.matrix(new_data))
118+
object = expr(object$fit),
119+
newx = expr(as.matrix(new_data))
120120
)
121121
)
122122
)
@@ -130,7 +130,7 @@ linear_reg_stan_data <-
130130
func = c(pkg = "rstanarm", fun = "stan_glm"),
131131
defaults =
132132
list(
133-
family = "gaussian"
133+
family = expr(stats::gaussian)
134134
)
135135
),
136136
pred = list(
@@ -139,8 +139,8 @@ linear_reg_stan_data <-
139139
func = c(fun = "predict"),
140140
args =
141141
list(
142-
object = quote(object$fit),
143-
newdata = quote(new_data)
142+
object = expr(object$fit),
143+
newdata = expr(new_data)
144144
)
145145
),
146146
confint = list(
@@ -167,8 +167,8 @@ linear_reg_stan_data <-
167167
func = c(pkg = "rstanarm", fun = "posterior_linpred"),
168168
args =
169169
list(
170-
object = quote(object$fit),
171-
newdata = quote(new_data),
170+
object = expr(object$fit),
171+
newdata = expr(new_data),
172172
transform = TRUE,
173173
seed = expr(sample.int(10^5, 1))
174174
)
@@ -197,8 +197,8 @@ linear_reg_stan_data <-
197197
func = c(pkg = "rstanarm", fun = "posterior_predict"),
198198
args =
199199
list(
200-
object = quote(object$fit),
201-
newdata = quote(new_data),
200+
object = expr(object$fit),
201+
newdata = expr(new_data),
202202
seed = expr(sample.int(10^5, 1))
203203
)
204204
),
@@ -207,8 +207,8 @@ linear_reg_stan_data <-
207207
func = c(fun = "predict"),
208208
args =
209209
list(
210-
object = quote(object$fit),
211-
newdata = quote(new_data)
210+
object = expr(object$fit),
211+
newdata = expr(new_data)
212212
)
213213
)
214214
)
@@ -232,8 +232,8 @@ linear_reg_spark_data <-
232232
func = c(pkg = "sparklyr", fun = "ml_predict"),
233233
args =
234234
list(
235-
x = quote(object$fit),
236-
dataset = quote(new_data)
235+
x = expr(object$fit),
236+
dataset = expr(new_data)
237237
)
238238
)
239239
)

0 commit comments

Comments
 (0)