-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] assigning using := prints during source( , echo=TRUE) (but not from console) #2369
Milestone
Comments
Confirming this is not RStudio-specific; command line code:
Also related to #933 |
MichaelChirico
added a commit
that referenced
this issue
May 4, 2019
aitap
added a commit
that referenced
this issue
Dec 3, 2024
MichaelChirico
added a commit
that referenced
this issue
Dec 5, 2024
…knit_print` (#6589) * Respect shouldPrint when auto-printing from knitr Implementing a method for the knitr::knit_print generic makes it possible to customise the behaviour without looking up the call stack. The current solution only works on R >= 3.6.0 because that's where delayed S3 registration has been introduced. * Delay S3method(knit_print, data.table) for R < 3.6 Use setHook() to ensure that registerS3method() will be called in the same session if 'knitr' is loaded later. Not needed on R >= 3.6.0 where S3method(knitr::knit_print) will do the right thing by itself. * ws-only style * put setHook() in a branch * Position comment on the same line * Restore the still-required #2369 condition * Regression test for #2369 Avoid breaking it again like in #6589 * NEWS entry * Comment the .onLoad condition Co-authored-by: Michael Chirico <chiricom@google.com> * restore unconditional setHook() --------- Co-authored-by: Michael Chirico <chiricom@google.com>
MichaelChirico
added a commit
that referenced
this issue
Dec 9, 2024
…6631) * Respect shouldPrint when auto-printing from knitr Implementing a method for the knitr::knit_print generic makes it possible to customise the behaviour without looking up the call stack. The current solution only works on R >= 3.6.0 because that's where delayed S3 registration has been introduced. * Delay S3method(knit_print, data.table) for R < 3.6 Use setHook() to ensure that registerS3method() will be called in the same session if 'knitr' is loaded later. Not needed on R >= 3.6.0 where S3method(knitr::knit_print) will do the right thing by itself. * ws-only style * put setHook() in a branch * Position comment on the same line * Restore the still-required #2369 condition * Use identical(,print) to check for autoprint * Add tests, including updating broken test * add comment * test withAutoprint() behavior too * NEWS entry * blank line in correct place? --------- Co-authored-by: Ivan K <krylov.r00t@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to #2319.
sessionInfo()
:The text was updated successfully, but these errors were encountered: