Skip to content

Commit 0467ebe

Browse files
MichaelChiricoaitap
authored andcommitted
Suppress conflict messages on new enough R-devel
Unfortunately, require(data.table, exclude="%notin") requires R >= 3.6.
1 parent fbb1b9c commit 0467ebe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/autoprint.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
suppressPackageStartupMessages(require(data.table))
1+
require(data.table, warn.conflicts=!exists("%notin%", "package:base"))
22
# Tests the suppression of := output
33
# Since this tests autoprinting at the console, it needs to use the .Rout.save mechanism in R CMD check
44
DT = data.table(a=1:2) # Should print at console?

tests/autoprint.Rout.save

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Type 'demo()' for some demos, 'help()' for on-line help, or
1515
'help.start()' for an HTML browser interface to help.
1616
Type 'q()' to quit R.
1717

18-
> suppressPackageStartupMessages(require(data.table))
18+
> require(data.table, warn.conflicts=!exists("%notin%", "package:base"))
1919
> # Tests the suppression of := output
2020
> # Since this tests autoprinting at the console, it needs to use the .Rout.save mechanism in R CMD check
2121
> DT = data.table(a=1:2) # Should print at console?

0 commit comments

Comments
 (0)