Skip to content

Commit 585ab23

Browse files
Avoid shadowing message in autoprint tests (#7446)
* Avoid shadowing message in autoprint tests Comparing ‘autoprint.Rout’ to ‘autoprint.Rout.save’ ...4,10d3 < < Attaching package: 'data.table' < < The following object is masked from 'package:base': < < %notin% < * Suppress conflict messages on new enough R-devel Unfortunately, require(data.table, exclude="%notin") requires R >= 3.6. * Just disable warn.conflicts for now * link issue directly * link issue directly --------- Co-authored-by: Michael Chirico <[email protected]>
1 parent 23c05c0 commit 585ab23

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/autoprint.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
require(data.table)
1+
# TODO(#7453): re-enable warn.conflicts
2+
require(data.table, warn.conflicts=FALSE)
23
# Tests the suppression of := output
34
# Since this tests autoprinting at the console, it needs to use the .Rout.save mechanism in R CMD check
45
DT = data.table(a=1:2) # Should print at console?

tests/autoprint.Rout.save

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ 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-
> require(data.table)
19-
Loading required package: data.table
18+
> # TODO(#7453): re-enable warn.conflicts
19+
> require(data.table, warn.conflicts=FALSE)
2020
> # Tests the suppression of := output
2121
> # Since this tests autoprinting at the console, it needs to use the .Rout.save mechanism in R CMD check
2222
> DT = data.table(a=1:2) # Should print at console?

0 commit comments

Comments
 (0)