Skip to content

Commit fd39ed4

Browse files
Progress deprecated option to error
1 parent 7f5a437 commit fd39ed4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

R/onLoad.R

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
# nocov start
22

3-
.pkg.store = new.env()
4-
.pkg.store$.unsafe.done = FALSE
53
.unsafe.opt = function() {
6-
if (.pkg.store$.unsafe.done) return(invisible())
7-
val = getOption("datatable.nomatch")
8-
if (is.null(val)) return(invisible()) # not defined (it hasn't been defined in .onLoad since v1.12.4)
9-
warningf("Option 'datatable.nomatch' is defined but is now ignored. Please see note 11 in v1.12.4 NEWS (Oct 2019), and note 14 in v1.14.2.")
10-
# leave this as warning for a long time
11-
.pkg.store$.unsafe.done = TRUE
12-
invisible()
4+
if (!is.null(getOption("datatable.nomatch")))
5+
stopf("Option 'datatable.nomatch' is defined but is now ignored. Please see note 11 in v1.12.4 NEWS (Oct 2019), and note 14 in v1.14.2.")
136
}
147

158
.Last.updated = vector("integer", 1L) # exported variable; number of rows updated by the last := or set(), #1885

0 commit comments

Comments
 (0)