Skip to content

Commit 936907d

Browse files
committed
Remove some very old deprecated functions
1 parent 9c50c5f commit 936907d

File tree

6 files changed

+3
-139
lines changed

6 files changed

+3
-139
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ Config/testthat/edition: 3
7373
Encoding: UTF-8
7474
LazyData: TRUE
7575
Roxygen: list(markdown = TRUE)
76-
RoxygenNote: 7.1.2
76+
RoxygenNote: 7.1.2.9000

NAMESPACE

-6
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,10 @@ S3method(tidy,jobjRef)
2424
S3method(tidy,simple_triplet_matrix)
2525
export(augment)
2626
export(bind_tf_idf)
27-
export(bind_tf_idf_)
2827
export(cast_dfm)
29-
export(cast_dfm_)
3028
export(cast_dtm)
31-
export(cast_dtm_)
3229
export(cast_sparse)
33-
export(cast_sparse_)
3430
export(cast_tdm)
35-
export(cast_tdm_)
3631
export(get_sentiments)
3732
export(get_stopwords)
3833
export(glance)
@@ -51,7 +46,6 @@ export(unnest_regex)
5146
export(unnest_sentences)
5247
export(unnest_skip_ngrams)
5348
export(unnest_tokens)
54-
export(unnest_tokens_)
5549
export(unnest_tweets)
5650
import(Matrix)
5751
import(dplyr)

R/deprecated.R

-48
This file was deleted.

R/tidytext.R

-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,2 @@
11
#' @keywords internal
22
"_PACKAGE"
3-
4-
#' Deprecated SE version of functions
5-
#'
6-
#' tidytext used to offer twin versions of each verb suffixed with an
7-
#' underscore, like dplyr and the main tidyverse packages. These
8-
#' versions had standard evaluation (SE) semantics; rather than taking
9-
#' arguments by code, like NSE verbs, they took arguments by value.
10-
#' Their purpose was to make it possible to program with tidytext.
11-
#' However, tidytext now uses tidy evaluation semantics. NSE verbs
12-
#' still capture their arguments, but you can now unquote parts of
13-
#' these arguments. This offers full programmability with NSE verbs.
14-
#' Thus, the underscored versions are now superfluous.
15-
#'
16-
#' Unquoting triggers immediate evaluation of its operand and inlines
17-
#' the result within the captured expression. This result can be a
18-
#' value or an expression to be evaluated later with the rest of the
19-
#' argument.
20-
#'
21-
#' @name deprecated-se
22-
#' @keywords internal
23-
NULL

R/unnest_tokens.R

+2-18
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,10 @@ unnest_tokens <- function(tbl, output, input, token = "words",
112112
if (!is_null(collapse)) {
113113

114114
if (is_logical(collapse)) {
115-
lifecycle::deprecate_stop(
116-
"0.2.7",
117-
"tidytext::unnest_tokens(collapse = 'must be `NULL` or a character vector')"
118-
)
115+
rlang::abort("`collapse` must be `NULL` or a character vector")
119116
}
120-
121117
if (is_grouped_df(tbl)) {
122-
rlang::abort(
123-
paste0("Use the `collapse` argument or grouped data, but not both.")
124-
)
118+
rlang::abort("Use the `collapse` argument or grouped data, but not both.")
125119
}
126120
if (any(!purrr::map_lgl(tbl, is_atomic))) {
127121
rlang::abort(
@@ -207,16 +201,6 @@ find_function <- function(token, format, to_lower, ...) {
207201
format = format
208202
)
209203
} else {
210-
if (is_null(collapse) && token %in% c(
211-
"ngrams", "skip_ngrams", "sentences",
212-
"lines", "paragraphs", "regex",
213-
"character_shingles"
214-
)) {
215-
lifecycle::deprecate_warn(
216-
"0.2.7",
217-
"tidytext::unnest_tokens(collapse = 'changed its default behavior for `NULL`')"
218-
)
219-
}
220204
tf <- get(paste0("tokenize_", token))
221205
if (token %in% c(
222206
"characters", "character_shingles",

man/deprecated-se.Rd

-45
This file was deleted.

0 commit comments

Comments
 (0)