Skip to content

Commit

Permalink
Add broom as soft dependency again
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-long committed Jul 4, 2019
1 parent 6f487e5 commit e1f8e23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Imports: ggplot2,
rlang (>= 0.3.0),
tibble
Suggests:
broom,
cowplot,
ggstance,
glue,
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test_sim_margins.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ test_that("sim_margins works for lm w/ non-focal character", {

context("sim_margins methods")

if (requireNamespace("huxtable") && requireNamespace("generics")) {
if (requireNamespace("huxtable") && requireNamespace("broom")) {
test_that("as_huxtable.sim_margins works", {
ss3 <- sim_margins(model = fit, pred = Murder, modx = Illiteracy,
mod2 = HSGrad)
Expand All @@ -124,7 +124,7 @@ if (requireNamespace("huxtable") && requireNamespace("generics")) {
})
}

if (requireNamespace("ggstance") && requireNamespace("generics")) {
if (requireNamespace("ggstance") && requireNamespace("broom")) {
test_that("plot.sim_margins works", {
ss3 <- sim_margins(model = fit, pred = Murder, modx = Illiteracy,
mod2 = HSGrad)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test_sim_slopes.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ test_that("sim_slopes works for lm w/ non-focal character", {

context("sim_slopes methods")

if (requireNamespace("huxtable") && requireNamespace("generics")) {
if (requireNamespace("huxtable") && requireNamespace("broom")) {
test_that("as_huxtable.sim_slopes works", {
ss3 <- sim_slopes(model = fit, pred = Murder, modx = Illiteracy,
mod2 = HSGrad)
Expand All @@ -79,7 +79,7 @@ if (requireNamespace("huxtable") && requireNamespace("generics")) {
})
}

if (requireNamespace("ggstance") && requireNamespace("generics")) {
if (requireNamespace("ggstance") && requireNamespace("broom")) {
test_that("plot.sim_slopes works", {
ss3 <- sim_slopes(model = fit, pred = Murder, modx = Illiteracy,
mod2 = HSGrad)
Expand Down

0 comments on commit e1f8e23

Please sign in to comment.