Skip to content

Commit 4307db5

Browse files
Prepare for CRAN (#249)
1 parent b94bb15 commit 4307db5

11 files changed

+202
-53
lines changed

DESCRIPTION

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: correlation
33
Title: Methods for Correlation Analysis
4-
Version: 0.8.1.2
4+
Version: 0.8.2
55
Authors@R:
66
c(person(given = "Dominique",
77
family = "Makowski",
@@ -51,14 +51,10 @@ Depends:
5151
Imports:
5252
bayestestR (>= 0.12.1),
5353
datasets,
54-
datawizard (>= 0.4.1.10),
54+
datawizard (>= 0.5.0),
5555
insight (>= 0.18.0),
5656
parameters (>= 0.18.1),
5757
stats
58-
Remotes:
59-
easystats/insight,
60-
easystats/datawizard,
61-
easystats/parameters
6258
Suggests:
6359
BayesFactor,
6460
poorman,
@@ -85,6 +81,6 @@ VignetteBuilder:
8581
knitr
8682
Encoding: UTF-8
8783
Language: en-US
88-
RoxygenNote: 7.2.0
84+
RoxygenNote: 7.2.1
8985
Config/testthat/edition: 3
9086
Roxygen: list(markdown = TRUE)

NEWS.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# correlation 0.8.1.1
1+
# correlation 0.8.2
2+
3+
- Maintenance release for *datawizard* package update.
24

35
# correlation 0.8.1
46

README.Rmd

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ The `cor_test()` function, for pairwise correlations, is also very convenient fo
130130
plot(cor_test(iris, "Sepal.Width", "Sepal.Length"))
131131
```
132132

133-
134133
## Grouped dataframes
135134

136135
The `correlation()` function also supports **stratified correlations**, all within the

README.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,21 @@ Click on the buttons above to access the package
5959
[easystats blog](https://easystats.github.io/blog/posts/), and check-out
6060
these vignettes:
6161

62-
- [Types of
63-
Correlation](https://easystats.github.io/correlation/articles/types.html)
64-
- [Multilevel
65-
Correlations](https://easystats.github.io/correlation/articles/multilevel.html)
62+
- [Types of
63+
Correlation](https://easystats.github.io/correlation/articles/types.html)
64+
- [Multilevel
65+
Correlations](https://easystats.github.io/correlation/articles/multilevel.html)
6666

6767
# Features
6868

6969
The *correlation* package can compute many different types of
7070
correlation, including:
7171

72-
**Pearson’s correlation**<br> ✅ **Spearman’s rank correlation**<br>
73-
**Kendall’s rank correlation**<br> ✅ **Biweight midcorrelation**<br>
74-
**Distance correlation**<br> ✅ **Percentage bend correlation**<br>
75-
**Shepherd’s Pi correlation**<br> ✅ **Blomqvist’s coefficient**<br>
76-
**Hoeffding’s D**<br> ✅ **Gamma correlation**<br> ✅ **Gaussian rank
72+
**Pearson’s correlation**<br> ✅ **Spearman’s rank correlation**<br>
73+
**Kendall’s rank correlation**<br> ✅ **Biweight midcorrelation**<br>
74+
**Distance correlation**<br> ✅ **Percentage bend correlation**<br>
75+
**Shepherd’s Pi correlation**<br> ✅ **Blomqvist’s coefficient**<br>
76+
**Hoeffding’s D**<br> ✅ **Gamma correlation**<br> ✅ **Gaussian rank
7777
correlation**<br> ✅ **Point-Biserial and biserial correlation**<br> ✅
7878
**Winsorized correlation**<br> ✅ **Polychoric correlation**<br> ✅
7979
**Tetrachoric correlation**<br> ✅ **Multilevel correlation**<br>
@@ -201,14 +201,14 @@ It is very easy to switch to a **Bayesian framework**.
201201
correlation(iris, bayesian = TRUE)
202202
## # Correlation Matrix (pearson-method)
203203
##
204-
## Parameter1 | Parameter2 | rho | 95% CI | pd | % in ROPE | Prior | BF
205-
## ------------------------------------------------------------------------------------------------------
206-
## Sepal.Length | Sepal.Width | -0.11 | [-0.27, 0.03] | 92.30% | 43.55% | Beta (3 +- 3) | 0.509
207-
## Sepal.Length | Petal.Length | 0.86 | [ 0.82, 0.90] | 100%*** | 0% | Beta (3 +- 3) | > 1000***
208-
## Sepal.Length | Petal.Width | 0.81 | [ 0.74, 0.85] | 100%*** | 0% | Beta (3 +- 3) | > 1000***
209-
## Sepal.Width | Petal.Length | -0.41 | [-0.54, -0.27] | 100%*** | 0% | Beta (3 +- 3) | > 1000***
210-
## Sepal.Width | Petal.Width | -0.35 | [-0.49, -0.21] | 100%*** | 0.02% | Beta (3 +- 3) | > 1000***
211-
## Petal.Length | Petal.Width | 0.96 | [ 0.95, 0.97] | 100%*** | 0% | Beta (3 +- 3) | > 1000***
204+
## Parameter1 | Parameter2 | rho | 95% CI | pd | % in ROPE | Prior | BF
205+
## --------------------------------------------------------------------------------------------------------
206+
## Sepal.Length | Sepal.Width | -0.11 | [-0.26, 0.05] | 91.62% | 44.12% | Beta (3 +- 3) | 0.509
207+
## Sepal.Length | Petal.Length | 0.86 | [ 0.82, 0.90] | 100%*** | 0% | Beta (3 +- 3) | 2.14e+43***
208+
## Sepal.Length | Petal.Width | 0.81 | [ 0.75, 0.86] | 100%*** | 0% | Beta (3 +- 3) | 2.62e+33***
209+
## Sepal.Width | Petal.Length | -0.41 | [-0.54, -0.27] | 100%*** | 0% | Beta (3 +- 3) | 3.49e+05***
210+
## Sepal.Width | Petal.Width | -0.35 | [-0.49, -0.21] | 100%*** | 0.05% | Beta (3 +- 3) | 5.29e+03***
211+
## Petal.Length | Petal.Width | 0.96 | [ 0.94, 0.97] | 100%*** | 0% | Beta (3 +- 3) | 1.24e+80***
212212
##
213213
## Observations: 150
214214
```

cran-comments.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
0 errors | 0 warnings | 0 notes
44

5-
* This is a new release.
5+
* Fixes breakage caused by *datawizard* package update.
66

77
## revdepcheck results
88

9-
We checked 7 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
9+
We checked 8 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
1010

11-
* We saw 0 new problems
12-
* We failed to check 0 packages
11+
* We saw 3 new problems
12+
* We failed to check 0 packages
13+
14+
The problems in *effectsize*, *see*, and *statsExpressions* packages are due to
15+
*datawizard* update, and unrelated to the current submission.

man/figures/README-12-1.png

657 KB
Loading

man/figures/README-7-1.png

172 KB
Loading

man/figures/README-corr-1.png

223 KB
Loading

revdep/README.md

+27-20
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
11
# Platform
22

3-
|field |value |
4-
|:--------|:------------------------------------|
5-
|version |R version 4.1.2 (2021-11-01) |
6-
|os |Windows 10 x64 (build 22000) |
7-
|system |x86_64, mingw32 |
8-
|ui |RStudio |
9-
|language |(EN) |
10-
|collate |English_United States.1252 |
11-
|ctype |English_United States.1252 |
12-
|tz |America/New_York |
13-
|date |2022-02-14 |
14-
|rstudio |2021.09.1+372 Ghost Orchid (desktop) |
15-
|pandoc |NA |
3+
|field |value |
4+
|:--------|:-----------------------------------------|
5+
|version |R version 4.2.1 (2022-06-23) |
6+
|os |macOS Monterey 12.4 |
7+
|system |aarch64, darwin20 |
8+
|ui |RStudio |
9+
|language |(EN) |
10+
|collate |en_US.UTF-8 |
11+
|ctype |en_US.UTF-8 |
12+
|tz |Europe/Berlin |
13+
|date |2022-08-07 |
14+
|rstudio |2022.07.0+548 Spotted Wakerobin (desktop) |
15+
|pandoc |2.19 @ /usr/local/bin/ (via rmarkdown) |
1616

1717
# Dependencies
1818

19-
|package |old |new |<U+0394> |
20-
|:-----------|:------|:------|:--|
21-
|correlation |0.7.1 |0.8.0 |* |
22-
|bayestestR |0.11.5 |0.11.5 | |
23-
|datawizard |0.2.3 |0.2.3 | |
24-
|insight |0.15.0 |0.15.0 | |
25-
|parameters |0.16.0 |0.16.0 | |
19+
|package |old |new |Δ |
20+
|:-----------|:-----|:--------|:--|
21+
|correlation |0.8.1 |0.8.2 |* |
22+
|bayestestR |NA |0.12.1.2 |* |
23+
|datawizard |NA |0.5.0 |* |
24+
|insight |NA |0.18.0.4 |* |
2625

2726
# Revdeps
2827

28+
## New problems (3)
29+
30+
|package |version |error |warning |note |
31+
|:------------------------------------------------|:-------|:------|:-------|:----|
32+
|[effectsize](problems.md#effectsize) |0.7.0 |__+1__ | | |
33+
|[see](problems.md#see) |0.7.1 |__+1__ |__+1__ | |
34+
|[statsExpressions](problems.md#statsexpressions) |1.3.2 |__+1__ | | |
35+

revdep/cran.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
## revdepcheck results
22

3-
We checked 7 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
3+
We checked 8 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
44

5-
* We saw 0 new problems
5+
* We saw 3 new problems
66
* We failed to check 0 packages
77

8+
Issues with CRAN packages are summarised below.
9+
10+
### New problems
11+
(This reports the first line of each new failure)
12+
13+
* effectsize
14+
checking tests ...
15+
16+
* see
17+
checking examples ... ERROR
18+
checking dependencies in R code ... WARNING
19+
20+
* statsExpressions
21+
checking tests ...
22+

revdep/problems.md

+128-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,128 @@
1-
*Wow, no problems at all. :)*
1+
# effectsize
2+
3+
<details>
4+
5+
* Version: 0.7.0
6+
* GitHub: https://github.com/easystats/effectsize
7+
* Source code: https://github.com/cran/effectsize
8+
* Date/Publication: 2022-05-26 13:20:02 UTC
9+
* Number of recursive dependencies: 234
10+
11+
Run `revdep_details(, "effectsize")` for more info
12+
13+
</details>
14+
15+
## Newly broken
16+
17+
* checking tests ...
18+
```
19+
Running ‘spelling.R’
20+
Running ‘testthat.R’
21+
ERROR
22+
Running the tests in ‘tests/testthat.R’ failed.
23+
Last 13 lines of output:
24+
7. └─effectsize (local) FUN(newX[, i], ...)
25+
8. └─datawizard::ranktransform(x, method = "average", ..., verbose = FALSE)
26+
── Error (test-rankES.R:76:5): kendalls_w ──────────────────────────────────────
27+
Error in `UseMethod("ranktransform")`: no applicable method for 'ranktransform' applied to an object of class "character"
28+
Backtrace:
29+
...
30+
31+
1. └─effectsize::kendalls_w(M1) at test-rankES.R:76:4
32+
2. └─effectsize:::.kendalls_w(data, verbose = verbose)
33+
3. └─base::apply(data, 1, .safe_ranktransform, verbose = verbose)
34+
4. └─effectsize (local) FUN(newX[, i], ...)
35+
5. └─datawizard::ranktransform(x, method = "average", ..., verbose = FALSE)
36+
37+
[ FAIL 3 | WARN 3 | SKIP 11 | PASS 494 ]
38+
Error: Test failures
39+
Execution halted
40+
```
41+
42+
# see
43+
44+
<details>
45+
46+
* Version: 0.7.1
47+
* GitHub: https://github.com/easystats/see
48+
* Source code: https://github.com/cran/see
49+
* Date/Publication: 2022-06-20 14:20:02 UTC
50+
* Number of recursive dependencies: 210
51+
52+
Run `revdep_details(, "see")` for more info
53+
54+
</details>
55+
56+
## Newly broken
57+
58+
* checking examples ... ERROR
59+
```
60+
Running examples in ‘see-Ex.R’ failed
61+
The error most likely occurred in:
62+
63+
> ### Name: coord_radar
64+
> ### Title: Radar coordinate system
65+
> ### Aliases: coord_radar
66+
>
67+
> ### ** Examples
68+
>
69+
> # Create a radar/spider chart with ggplot:
70+
...
71+
Attaching package: ‘poorman’
72+
73+
The following objects are masked from ‘package:stats’:
74+
75+
filter, lag
76+
77+
Loading required package: ggplot2
78+
Error in FUN(X[[i]], ...) : object 'Name' not found
79+
Calls: <Anonymous> ... <Anonymous> -> f -> scales_add_defaults -> lapply -> FUN
80+
Execution halted
81+
```
82+
83+
* checking dependencies in R code ... WARNING
84+
```
85+
Missing or unexported object: ‘datawizard::data_rescale’
86+
```
87+
88+
# statsExpressions
89+
90+
<details>
91+
92+
* Version: 1.3.2
93+
* GitHub: https://github.com/IndrajeetPatil/statsExpressions
94+
* Source code: https://github.com/cran/statsExpressions
95+
* Date/Publication: 2022-05-20 19:50:02 UTC
96+
* Number of recursive dependencies: 158
97+
98+
Run `revdep_details(, "statsExpressions")` for more info
99+
100+
</details>
101+
102+
## Newly broken
103+
104+
* checking tests ...
105+
```
106+
Running ‘spelling.R’
107+
Running ‘testthat.R’
108+
ERROR
109+
Running the tests in ‘tests/testthat.R’ failed.
110+
Last 13 lines of output:
111+
5. │ └─effectsize:::.kendalls_w(data, verbose = verbose)
112+
6. │ └─base::apply(data, 1, .safe_ranktransform, verbose = verbose)
113+
7. │ └─effectsize (local) FUN(newX[, i], ...)
114+
8. │ └─datawizard::ranktransform(x, method = "average", ..., verbose = FALSE)
115+
9. ├─statsExpressions:::tidy_model_effectsize(.)
116+
...
117+
10. │ ├─dplyr::bind_cols(...)
118+
11. │ │ └─rlang::list2(...)
119+
12. │ └─... %>% select(-contains("term"))
120+
13. ├─dplyr::select(., -contains("term"))
121+
14. ├─insight::standardize_names(., style = "broom")
122+
15. └─dplyr::mutate(., effectsize = stats::na.omit(effectsize::get_effectsize_label(colnames(.))))
123+
124+
[ FAIL 2 | WARN 2 | SKIP 52 | PASS 33 ]
125+
Error: Test failures
126+
Execution halted
127+
```
128+

0 commit comments

Comments
 (0)