Skip to content

Commit 9759281

Browse files
committed
add nocov for knitr_print
1 parent 58b767d commit 9759281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/print.data.table.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ trunc_cols_message = function(not_printed, abbs, class, col.names){
293293

294294
# Maybe add a method for repr::repr_text. See https://github.com/Rdatatable/data.table/issues/933#issuecomment-220237965
295295
knit_print.data.table = function(x, ...) {
296-
if (!shouldPrint(x)) return(invisible(x))
297-
NextMethod()
296+
if (!shouldPrint(x)) return(invisible(x)) # nocov
297+
NextMethod() # nocov
298298
}
299299
record_print.data.table = function(x, ...) {
300300
if (!shouldPrint(x)) return(character()) # nocov

0 commit comments

Comments
 (0)