-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat!: allow overwriting rextendr templates by use_extendr
#292
Conversation
6774ef9
to
c035b87
Compare
@JosiahParry Could you take a look at this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also update NEWS.md
since it is a significant change of the behavior.
I think I have already done that. |
Sorry, sometimes I am just blind to the things I see in front of me :) |
…te` always check if overwrite or not
use_extendr
…originally has this functionality
…nteractive, thus restoring `ui_nope`
I can give this a review tomorrow! |
…be updated via the `document` function
Thanks for reviewing this. Yeah, overwriting
Creating a separate function may be excessive; how about adding an option to use_extendr so that the behavior can be changed to use only those files? |
My hesitancy here is that once you start adding too many option to a function it becomes a bit like a magical cauldron that needs special incantations to work how you want it--i.e. the purpose becomes less straight forwrd. Alternatively, |
Once the typo in the doc is fixed and regenerated in the man page I think its good to go! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I "approve" this PR! Looks quite good.
I'm not able to actually approve so I'm putting up the bat signal @Ilia-Kosenkov |
I'll review it then; @JosiahParry you should be able to approve.. We'll investigate that too... |
Approval itself can be done by anyone (There is a repository option to disallow it), but the green check is only given to approvals by those who have the permission to merge, I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lot. LGTM. I'll wait for @Ilia-Kosenkov to give it a look. But @JosiahParry is a contributor as well, so this is approved.
Upon further review, why is the |
If there are still comments, I will merge as soon as they are resolved. |
Indeed, it is annoying to be asked several times if we want to overwrite. I have updated it. |
@Ilia-Kosenkov all resolved |
Resolve #275
This PR allows the
use_extendr
function to overwrite existing templates.If it is not an interactive session, skip without overwriting.