We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b0fd7f commit d489927Copy full SHA for d489927
1 file changed
R/g3_fit.R
@@ -24,10 +24,10 @@ g3_fit <- function(model,
24
out_params <- params
25
26
if (inherits(model, "g3_r")) {
27
+ if (is.data.frame(params)) params <- params$value
28
if ("report_detail" %in% names(params) && printatstart == 1) {
29
params$report_detail <- 1L
- model_output <- model(params)
30
- tmp <- attributes(model_output)
+ tmp <- attributes(model(params))
31
data_env <- environment(model)
32
} else {
33
tmp <- NULL
@@ -75,8 +75,8 @@ g3_fit <- function(model,
75
## Run model
76
if (is.data.frame(params)) params <- params$value
77
78
79
+ data_env <- environment(model)
80
}
81
82
0 commit comments