Skip to content

Commit

Permalink
use biglm::coef
Browse files Browse the repository at this point in the history
fixes #484
  • Loading branch information
bgoodri committed Nov 9, 2020
1 parent 7b88b5c commit e3f45fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/stan_biglm.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ stan_biglm <- function(biglm, xbar, ybar, s_y, ...,
!inherits(biglm$qr, "bigqr") || is.null(biglm$terms))
stop("'biglm' must be of S3 class biglm as defined by the biglm package.")

b <- coef(biglm)
b <- biglm::coef(biglm)

This comment has been minimized.

Copy link
@jgabry

jgabry Dec 20, 2020

Member

@bgoodri This actually causes an error because there's no coef exported from biglm:

> biglm::coef(biglm)
Error: 'coef' is not an exported object from 'namespace:biglm'

and running r cmd check via github actions in #496 results in

Missing or unexported object: ‘biglm::coef’

What was the problem with just coef(biglm)?

This comment has been minimized.

Copy link
@bgoodri

bgoodri via email Dec 20, 2020

Author Contributor
R <- diag(length(b))
R[upper.tri(R)] <- biglm$qr$rbar
R <- sqrt(biglm$qr$D) * R
Expand Down

0 comments on commit e3f45fa

Please sign in to comment.