Skip to content

Commit

Permalink
Bug, object not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
iflint1 committed Oct 29, 2023
1 parent 30504bf commit 783409e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/compute_A2_plus_A3.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ compute_A2_plus_A3 <- function(..., list, nthreads = NULL, debug = FALSE, npoint
colnames(tmp) <- mat@Dimnames[[2]]
tmp
}
if(!inherits(fit$data_list$regressors, "Matrix")) {
if(!inherits(fits[[1]]$data_list$regressors, "Matrix")) {
stop("Error while converting regression matrix to base::matrix format.")
} else {
regressors <- as_matrix(fit$data_list$regressors)
regressors <- as_matrix(fits[[1]]$data_list$regressors)
}
}

Expand Down

0 comments on commit 783409e

Please sign in to comment.