Skip to content

Commit 32ef125

Browse files
committed
soft to warn deprecated
1 parent a0148b3 commit 32ef125

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

NEWS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
- Requires R (>= 3.5)
66

7+
- Moved following from soft to warn deprecated
8+
- `is.term()`
9+
- `is.incomplete_terms()`
10+
- `is.inconsistent_terms()`
11+
- `parameters()`
12+
- `parameters<-()`
13+
- `set_parameters()`
14+
- `tdims()`
15+
716
# term 0.3.4
817

918
- Removed deprecated `default.stringsAsFactors()` from `as.data.frame.term_rcrd`

R/deprecated.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ NULL
1212
#' Replace by [is_term()]
1313
#' @export
1414
is.term <- function(x) {
15-
deprecate_soft("0.1.0",
15+
deprecate_warn("0.1.0",
1616
what = "term::is.term()",
1717
with = "term::is_term()"
1818
)
@@ -26,7 +26,7 @@ is.term <- function(x) {
2626
#' Replace by [is_incomplete_terms()]
2727
#' @export
2828
is.incomplete_terms <- function(x) {
29-
deprecate_soft("0.1.0",
29+
deprecate_warn("0.1.0",
3030
what = "term::is.incomplete_terms()",
3131
with = "term::is_incomplete_terms()"
3232
)
@@ -40,7 +40,7 @@ is.incomplete_terms <- function(x) {
4040
#' Replace by [is_inconsistent_terms()]
4141
#' @export
4242
is.inconsistent_terms <- function(x) {
43-
deprecate_soft("0.1.0",
43+
deprecate_warn("0.1.0",
4444
what = "term::is.inconsistent_terms()",
4545
with = "term::is_inconsistent_terms()"
4646
)
@@ -54,7 +54,7 @@ is.inconsistent_terms <- function(x) {
5454
#' Replace by [pars()]
5555
#' @export
5656
parameters <- function(x, ...) {
57-
deprecate_soft("0.1.0",
57+
deprecate_warn("0.1.0",
5858
what = "parameters()",
5959
with = "pars()"
6060
)
@@ -69,7 +69,7 @@ parameters <- function(x, ...) {
6969
#' Replace by pars<-
7070
#' @export
7171
`parameters<-` <- function(x, value) {
72-
deprecate_soft("0.1.0",
72+
deprecate_warn("0.1.0",
7373
what = "`parameters<-`()",
7474
with = "`pars<-`()"
7575
)
@@ -84,7 +84,7 @@ parameters <- function(x, ...) {
8484
#' Replace by [set_pars()]
8585
#' @export
8686
set_parameters <- function(x, pars) {
87-
deprecate_soft("0.1.0",
87+
deprecate_warn("0.1.0",
8888
what = "term::set_parameters()",
8989
with = "term::set_pars()"
9090
)
@@ -98,7 +98,7 @@ set_parameters <- function(x, pars) {
9898
#' Replace by [tindex()]
9999
#' @export
100100
tdims <- function(x) {
101-
deprecate_soft("0.1.0",
101+
deprecate_warn("0.1.0",
102102
what = "term::tdims()",
103103
with = "term::tindex()"
104104
)

revdep/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
|package |old |new |Δ |
2020
|:----------|:-----|:----------|:--|
21-
|term |0.3.4 |0.3.4.9000 |* |
21+
|term |0.3.4 |0.3.5 |* |
2222
|cli |NA |3.4.1 |* |
2323
|extras |NA |0.4.0.9000 |* |
2424
|rlang |NA |1.0.6 |* |

0 commit comments

Comments
 (0)