Skip to content

Commit 0faf924

Browse files
Bump required R version to 4.0 (#515)
* Bump required R version to 4.0 * news [skip ci] * fix styling --------- Co-authored-by: Daniel <[email protected]>
1 parent a4a8308 commit 0faf924

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+9
-181
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ License: MIT + file LICENSE
3131
URL: https://easystats.github.io/datawizard/
3232
BugReports: https://github.com/easystats/datawizard/issues
3333
Depends:
34-
R (>= 3.6)
34+
R (>= 4.0)
3535
Imports:
3636
insight (>= 1.0.0),
3737
stats,

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
BREAKING CHANGES AND DEPRECATIONS
44

5+
* *datawizard* now requires R >= 4.0 (#515).
6+
57
* Argument `drop_na` in `data_match()` is deprecated now. Please use
68
`remove_na` instead.
79

R/categorize.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ categorize.grouped_df <- function(x,
363363
}
364364

365365

366-
367366
# tools --------------------
368367

369368
.equal_range <- function(x, range, n_groups, lowest = NULL) {

R/data_arrange.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ data_arrange <- function(data, select = NULL, safe = TRUE) {
2727
}
2828

2929

30-
3130
#' @export
3231
data_arrange.default <- function(data, select = NULL, safe = TRUE) {
3332
if (is.null(select) || length(select) == 0) {
@@ -100,7 +99,6 @@ data_arrange.default <- function(data, select = NULL, safe = TRUE) {
10099
}
101100

102101

103-
104102
#' @export
105103
data_arrange.grouped_df <- function(data, select = NULL, safe = TRUE) {
106104
grps <- attr(data, "groups", exact = TRUE)

R/data_match.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ data_match <- function(x,
182182
}
183183

184184

185-
186185
#' @rdname data_match
187186
#' @export
188187
data_filter <- function(x, ...) {

R/data_read.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ data_read <- function(path,
127127
}
128128

129129

130-
131130
# helper -----------------------
132131

133132
.file_ext <- function(x) {
@@ -156,7 +155,6 @@ data_read <- function(path,
156155
}
157156

158157

159-
160158
# process imported data from SPSS, SAS or Stata -----------------------
161159

162160
.post_process_imported_data <- function(x, convert_factors, verbose) {
@@ -225,7 +223,6 @@ data_read <- function(path,
225223
}
226224

227225

228-
229226
# read functions -----------------------
230227

231228
.read_spss <- function(path, encoding, convert_factors, verbose, ...) {

R/data_relocate.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ data_relocate <- function(data,
139139
}
140140

141141

142-
143142
#' @rdname data_relocate
144143
#' @export
145144
data_reorder <- function(data,

R/data_rescale.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ change_scale <- function(x, ...) {
8282
}
8383

8484

85-
8685
#' @export
8786
rescale.default <- function(x, verbose = TRUE, ...) {
8887
if (isTRUE(verbose)) {
@@ -94,7 +93,6 @@ rescale.default <- function(x, verbose = TRUE, ...) {
9493
}
9594

9695

97-
9896
#' @rdname rescale
9997
#' @export
10098
rescale.numeric <- function(x,
@@ -233,7 +231,6 @@ rescale.grouped_df <- function(x,
233231
}
234232

235233

236-
237234
#' @rdname rescale
238235
#' @export
239236
rescale.data.frame <- function(x,

R/data_reverse.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ reverse.numeric <- function(x,
115115
}
116116

117117

118-
119118
#' @export
120119
reverse.factor <- function(x, range = NULL, verbose = TRUE, ...) {
121120
# Warning if all NaNs
@@ -195,7 +194,6 @@ reverse.factor <- function(x, range = NULL, verbose = TRUE, ...) {
195194
}
196195

197196

198-
199197
#' @export
200198
reverse.grouped_df <- function(x,
201199
select = NULL,
@@ -254,7 +252,6 @@ reverse.grouped_df <- function(x,
254252
}
255253

256254

257-
258255
#' @rdname reverse
259256
#' @export
260257
reverse.data.frame <- function(x,

R/data_tabulate.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,6 @@ print_md.datawizard_tables <- function(x, big_mark = NULL, ...) {
690690
}
691691

692692

693-
694-
695693
# tools --------------------
696694

697695
.table_header <- function(x, format = "text") {

0 commit comments

Comments
 (0)