Skip to content

Commit

Permalink
use httr2
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 10, 2024
1 parent 456cb1e commit 9cde7a7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Package
Package: performance
Title: Assessment of Regression Models Performance
Version: 0.12.0.8
Authors@R:
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
role = c("aut", "cre"),
Expand Down Expand Up @@ -39,18 +39,18 @@ Authors@R:
email = "[email protected]",
comment = c(ORCID = "0000-0003-4315-6788", Twitter = "@rempsyc")),
person(given = "Vincent",
family = "Arel-Bundock",
email = "[email protected]",
family = "Arel-Bundock",
email = "[email protected]",
role = "ctb",
comment = c(ORCID = "0000-0003-2042-7063")),
person(given = "Martin",
family = "Jullum",
role = "rev"),
person(given = "gjo11",
role = "rev"),
person("Etienne",
"Bacher", ,
"[email protected]",
person("Etienne",
"Bacher", ,
"[email protected]",
role = "ctb",
comment = c(ORCID = "0000-0002-9271-5075")))
Maintainer: Daniel Lüdecke <[email protected]>
Expand Down Expand Up @@ -93,15 +93,15 @@ Suggests:
DHARMa,
estimatr,
fixest,
flextable,
flextable,
forecast,
ftExtra,
gamm4,
ggplot2,
glmmTMB,
graphics,
Hmisc,
httr,
httr2,
ICS,
ICSOutlier,
ISLR,
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-icc.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test_that("icc", {
skip_on_cran()
skip_if_not_installed("curl")
skip_if_offline()
skip_if_not_installed("httr")
skip_if_not_installed("httr2")
m2 <- insight::download_model("stanreg_lmerMod_1")
expect_equal(
icc(m2),
Expand All @@ -57,7 +57,7 @@ test_that("icc", {
skip_on_cran()
skip_if_not_installed("curl")
skip_if_offline()
skip_if_not_installed("httr")
skip_if_not_installed("httr2")
m3 <- insight::download_model("brms_mixed_1")
set.seed(123)
expect_equal(
Expand All @@ -71,7 +71,7 @@ test_that("icc", {
skip_on_cran()
skip_if_not_installed("curl")
skip_if_offline()
skip_if_not_installed("httr")
skip_if_not_installed("httr2")
m3 <- insight::download_model("brms_mixed_1")
set.seed(123)
expect_equal(
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-model_performance.bayesian.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test_that("model_performance.stanreg", {
skip_on_cran()
skip_if_not_installed("curl")
skip_if_offline()
skip_if_not_installed("httr")
skip_if_not_installed("httr2")
set.seed(333)
model <- insight::download_model("stanreg_lm_1")
skip_if(is.null(model))
Expand Down Expand Up @@ -34,7 +34,7 @@ test_that("model_performance.brmsfit", {
skip_on_cran()
skip_if_not_installed("curl")
skip_if_offline()
skip_if_not_installed("httr")
skip_if_not_installed("httr2")
set.seed(333)

model <- insight::download_model("brms_1")
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-model_performance.merMod.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test_that("model_performance.merMod", {
skip_on_cran()
skip_if_not_installed("curl")
skip_if_offline()
skip_if_not_installed("httr")
skip_if_not_installed("httr2")

model <- insight::download_model("lmerMod_1")
expect_equal(model_performance(model, estimator = "ML")$AIC, AIC(logLik(model, REML = FALSE)), tolerance = 0.01)
Expand Down

0 comments on commit 9cde7a7

Please sign in to comment.