Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 29, 2023
1 parent 9ae24b1 commit 5b172d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ S3method(estimate_density,blrm)
S3method(estimate_density,brmsfit)
S3method(estimate_density,data.frame)
S3method(estimate_density,default)
S3method(estimate_density,double)
S3method(estimate_density,draws)
S3method(estimate_density,emmGrid)
S3method(estimate_density,emm_list)
Expand Down
6 changes: 6 additions & 0 deletions R/estimate_density.R
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,12 @@ estimate_density.grouped_df <- function(x,
do.call(rbind, out)
}

# to avoid class conflicts - e.g., numeric variables imported with the
# haven package are of class "haven_labelled" and "double", which causes
# problems with the generic or numeric method.

#' @export
estimate_density.double <- estimate_density.numeric

#' @export
estimate_density.emmGrid <- function(x,
Expand Down
18 changes: 5 additions & 13 deletions man/diagnostic_posterior.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b172d9

Please sign in to comment.