-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Allow silent R output #1126
Comments
As I said on SO, I am somewhat ambivalent about it:
So colour me not-convinced. We're also in a quasi-freeze as I am switching to a six-month release cycle with a January release coming. Given the incidents around release 1.0.4 and the very disappointing and childish community behavior experienced there I have little inclination to accept changes close to release as we did then. So we could talk about it for July 2021. But is it really worth it? That said, the change is trivial and close to meaningless and may never reach than a handful of users. |
I think the simple fix here is:
I don't have strong feelings either way but agree with the general inclination to avoid changes immediately prior to release. At least this should be a safe change though. |
Yes this is, to paraphrase, Douglas Adams "mostly harmless". But we need it in |
This was more or less a two-liner and has been added. Stll not convinced it is all that useful but hey we aim to please :) |
As outlined in a SO question, when sourcing a
cpp
-file with embedded R code, there is no option to silence the R output.This can be seen by running:
I opened this issue so we can discuss if this is needed.
I use embedded R code to define an R wrapper around a cpp function in one file, reducing the number of files needed (e.g., define a cpp function, which returns a data.frame, then call some
dplyr
ordata.table
code on the data.frame). I would like to prevent printing the R code when I callsourceCpp()
, for example in some kinds of rmarkdown format.As pointed out by MrFlick, it would require changing the
Attributes.R
L217 call tosource()
, which could include an optionshowROutput
orsilenceR
or similar.The text was updated successfully, but these errors were encountered: