Skip to content

Commit 9c4bc23

Browse files
authored
Prepare CRAN release (#1167)
* Prepare CRAN release * fix * skip tets on CRAN
1 parent 260879e commit 9c4bc23

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: parameters
33
Title: Processing of Model Parameters
4-
Version: 0.28.1.2
4+
Version: 0.28.2
55
Authors@R:
66
c(person(given = "Daniel",
77
family = "Lüdecke",

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# parameters (devel)
1+
# parameters 0.28.2
22

33
## Bug fixes
44

R/methods_marginaleffects.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ model_parameters.marginaleffects <- function(
4242
out <- insight::standardize_names(out, style = "easystats")
4343
}
4444

45+
# edge case: for avg_comparisons() with custom hypothesis, "term" and "hypothesis"
46+
# are identical columns, now both names "Parameter" - remove one
47+
param_cols <- which(colnames(out) == "Parameter")
48+
if (length(param_cols) > 1) {
49+
out[param_cols[-1]] <- NULL
50+
}
51+
4552
# in case data grid contained column names that are reserved words,
4653
# rename those back now...
4754
colnames(out) <- gsub("#####$", "", colnames(out))

tests/testthat/test-model_parameters.efa_cfa.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test_that("principal_components", {
2727
test_that("efa-cfa", {
2828
skip_if_not_installed("psych")
2929
skip_if_not_installed("lavaan")
30+
skip_on_cran()
3031

3132
efa <- psych::fa(attitude, nfactors = 3)
3233
params <- parameters::model_parameters(efa)

0 commit comments

Comments
 (0)