Conversation
Codecov Report
@@ Coverage Diff @@
## master #634 +/- ##
=======================================
Coverage 90.64% 90.65%
=======================================
Files 47 47
Lines 2171 2173 +2
=======================================
+ Hits 1968 1970 +2
Misses 203 203
Continue to review full report at Codecov.
|
0f9a39d to
a6e19be
Compare
|
@select-id-from-users you can try this if you want. Will merge into master later. |
|
@lorenzwalthert Works like a charm, thank you very much! |
Maybe we can come up with a better error: Also, do you find on, off and dry self-explanatory? |
|
I guess since the error is thrown only when dry="fail" you don't have to mention that dry is set to 'fail'? I have no strong opinion here, and would be happy either way. I find the options self-explanatory yes. Maybe "on" could be "warn"? Although warnings can also result in non-zero exit code when you run |
Closes #633 and implements an API change.
New argument
dryinstyle_file()and friends to control write back and failing in case of modification. The argument takes these values:off(default): Current behavior. Write back to file as side effect. Return tibble with summary invisible (as now).on: Never modify files, also return tibble summary as if things were written back.fail: Same ason, but fail fast with error if modification would occur on write-back.Any feedback on the design welcome, I am not so sure this is optimal. @krlmlr since this is an API change, I'd like to have your opinion on that if possible.