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.
patch-1.16.2instead ofmaster. Should we cherry-pick 9de2567 intomastertoo? See also: Master diverges from patch 1.16.2 #6587knitr? For example,Haveknitrsetoptions(knitr.is.auto.printing = TRUE)and detect that inprint.data.tablesignalCondition(<please_dont_autoprint_me>)fromprint.data.tableand haveknitrdetect thatOriginally posted by @yihui in fuse does not work for quote yihui/litedown#38 (comment)
See Solve the
knitrauto-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.