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
{{ message }}
Repository navigation
API change: new argument verbose for style_*() #375
This may be helpful if stylers are called from within other functions. Alternative: Let developers capture output in these functions and storing them in an object that they will throw away.
Agreed. I've seen quiet = FALSE in other (especially tidyverse) packages. Not sure how useful it is to capture the output, when the caller could do that himself.
If we implement it, sure. But what I showcased above was a way a user / developer can avoid any command line output with the current CRAN version (v1.0.1) of styler.
Activity
krlmlr commentedon Mar 21, 2018
Agreed. I've seen
quiet = FALSEin other (especially tidyverse) packages. Not sure how useful it is to capture the output, when the caller could do that himself.lorenzwalthert commentedon Mar 23, 2018
Agree, let's keep the API slim. I think 90% of the people who would want to use this option are developers and they can write a wrapper around it.
krlmlr commentedon Mar 23, 2018
I don't mind a
quiet = FALSEargument, though.lorenzwalthert commentedon Mar 23, 2018
Ok, so I might have gotten you wrong here
Because I thought that speaks against an additional argument
quiet.krlmlr commentedon Mar 23, 2018
I thought
quiet = TRUEwouldn't involve callingcapture.output().lorenzwalthert commentedon Mar 23, 2018
If we implement it, sure. But what I showcased above was a way a user / developer can avoid any command line output with the current CRAN version (v1.0.1) of styler.
krlmlr commentedon Mar 23, 2018
quiet = TRUEfeels better than asking the caller to capture and then discard our output.lorenzwalthert commentedon Mar 23, 2018
ok.