-
Notifications
You must be signed in to change notification settings - Fork 301
fix: make use_testthat() work for brand-new package #1843
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
Conversation
|
@ateucher will you have a look? I think you were most recently in this headspace. But seems good to me. |
|
Yes, happy to. |
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.
|
Should |
|
I did certainly wonder about that but thought it may end up receiving something unexpected that goes awry when trying to coerce, whereas the calling functions would be more suited to formatting the value properly since they know about them. Right now |
|
OK I'm happy for you decide. So, yes, I think it would be good to check for character input, as you suggest above. |
* Also allow vectors > length 1 since desc() allows it * union old and new when appending to avoid duplicates
|
I'm going to merge this - thanks @maelle! |
| Code | ||
| proj_desc_field_update("Config/Needs/foofy", c("alfa", "bravo"), append = TRUE) | ||
| Message | ||
| v Adding 'alfa', 'bravo' to Config/Needs/foofy |
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'm not sure this would be worth the fiddliness. But arguably the set logic should be applied before we message. Maybe just worth keeping in mind if we touch this again.
Coming from r-lib/desc#117 (comment)
I understand why this doesn't happen in usethis test where testthat edition field is already set by
create_local_package(); after digging a bit I see that prior to 747931b there wasas.character(). Now I am at peace, having the whole story 🧩 😌@krlmlr