You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do we want a more reliable secret handshake with knitr? For example,
Have knitr set options(knitr.is.auto.printing = TRUE) and detect that in print.data.table
signalCondition(<please_dont_autoprint_me>) from print.data.table and have knitr detect that
If you want the exact printing behavior of data.table:::print.data.table and want the result to be a table, you can register an S3 method on xfun::record_print (data.table doesn't have to import xfun).
Do we want to petition R developers to allow returning invisibly from [? The change is just one line, eval = 0 to eval = 200, but it does break R's own tests/reg-tests-2.Rout.save, making matrix(5:-6, 3)[2, invisible(3)] also invisible, and might break a lot of other stuff.
The text was updated successfully, but these errors were encountered:
Given the new interest for #3029, perhaps we do want to ask R developers to make .Primitive("[") stop forcing visibility? The complete change that passes LC_ALL=C.UTF-8 make check-devel is below, but this may or may not break a lot of CRAN/Bioconductor packages. (Do we have or know someone who has the infrastructure to run R CMD check on a lot of R packages with two different versions of R?)
patch-1.16.2
instead ofmaster
. Should we cherry-pick 9de2567 intomaster
too?knitr
? For example,Haveknitr
setoptions(knitr.is.auto.printing = TRUE)
and detect that inprint.data.table
signalCondition(<please_dont_autoprint_me>)
fromprint.data.table
and haveknitr
detect thatOriginally posted by @yihui in fuse does not work for quote yihui/litedown#38 (comment)
See Solve the
knitr
auto-printing problem by registering a method forknit_print
#6589[
? The change is just one line, eval = 0 to eval = 200, but it does break R's owntests/reg-tests-2.Rout.save
, makingmatrix(5:-6, 3)[2, invisible(3)]
also invisible, and might break a lot of other stuff.The text was updated successfully, but these errors were encountered: