-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add cff #1
Add cff #1
Conversation
Invited @PabRod as collaborator, once he accepts, I can assign him as reviewer. |
I booked some time to take a look at this on Tue 30th. |
NAMESPACE
Outdated
@@ -106,6 +106,7 @@ export(use_cc0_license) | |||
export(use_ccby_license) | |||
export(use_circleci) | |||
export(use_circleci_badge) | |||
export(use_cff) |
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.
Very good. Are you sure this is the first time you use R?
R/cff.R
Outdated
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 like the parallel with use-citation()
(available in R/citation.R
). It looks good, but I am slightly confused about their not-so-straightforward workflow.
Documentation can be generated from the It is usually a good idea to set it to roxygenize on every Forgetting to roxygenize is a very common mistake. Indeed, there were functions in main that were not roxygenized. |
I suggest keeping it as it is. I like how it mirrors |
I'd say yes, Update: I was wrong. After updating my R to the latest version, only one test fails. It's not the cff one! |
It is definitely not insufficient, but let's:
|
I didn't see you edited your comment about tests. It looks like you can run a single test: https://testthat.r-lib.org/reference/test_file.html but I somehow don't get that to work (clearly need to learn how to use R studio properly). Anyway, if you are satisfied with this review, I will merge and draft a PR. |
I've created a PR, now let see if they have any feedback. Thanks for your help! |
I'm using this PR within my repo to have a code review before pushing upstream.
As far as I understand, the workflow should be that you create a package, and add a CFF as follows:
And the output should be something like this:
Things I am not very sure about:
roxygen2
somehow? (see I sawman/*.Rd
files mention not to edit by hand, but I have no idea how this works).