-
Notifications
You must be signed in to change notification settings - Fork 235
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
Improvement suggestion: remove version dependent message from roxygen generated documentation #338
Comments
Hi Luca. See the discussion under #334. :-) Geoff |
I think it's important that somewhere in the package includes the current version of roxygen - that makes it much easier to diagnose documentation difference when multiple people are working on the same package. But I agree that putting it in every file is overkill, and it only needs to be listed in one place. There are a few options for where that one place might be:
@gaborcsardi, @krlmlr do you have any thoughts? |
If we were to make a dummy .Rd file, I think this is the smallest it could be: \name{roxygen_version}
\title{Roxygen}
\description{4.1.0}
\keyword{internal} |
The problem with this approach is that in fact different Rd files file might have been generated with different versions of roxygen, and your dummy file will contain one version only. Or you would re-generate all files for each I think the "correct" solution is to generate the docs at build time, but I know that you don't want to do that, and it is not really possible currently, anyway. Btw. having roxygen generate the docs without recompiling the package would be a step in this direction. Then you could roxygenize on the user's machine, without having to have a compiler there. So, I think the current solution of having the header in each file is not too bad, actually. |
I see two major issues here:
For myself, I am very comfortable with gitflow. This allows generating documentation at release time (which is something between development and build time). There is a CLI, which supports a set of hooks. A rough summary:
This process is not tied to gitflow, but works well with it. Advantages:
Disadvantages:
An example that uses this technique right from the start: https://github.com/krlmlr/import.gen |
@gaborcsardi every call to |
@hadley I see. Then my only complaint about the current behaviour is the "developers with different roxygen versions" case, which is not easy to fix. So again, considering the alternatives, I don't think the current behavior is too bad. Having a separate dummy file is fine, too, but probably there will be some "transition issues" if you put it in a file that is not ignored by Btw. how about putting it in |
Problem with non-standard field is that R CMD check warns about it :/ |
I don't think so. Here are the valid fields: and here they allow everything that looks like Just tried it with 3.2.1, |
To the initial question: One possible answer might be Do we have a |
Ok, |
👍 |
I think it would be better to remove the version number from the documentation generated by roxygen2.
When collaborating to a package people can have different version of roxygen2 installed and git (or any other VCS) sees as modified a lot of documentation files just because the roxygen2 version is different.
Can the message be made version neutral?
The text was updated successfully, but these errors were encountered: