-
Notifications
You must be signed in to change notification settings - Fork 757
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
Folding roxygen(2) into the install_github() workflow #43
Comments
How about having a file called |
Sounds like a good solution to me. |
Actually, I think it would have to be |
No, scratch that, because then that would cause problems when you're working on local projects. |
I think my main question is whether this script should run for both and local and remote installs, or just remote. If just remote, it may need a slightly different name. |
Or is that better to do in a make file? |
The trouble with a Makefile is that it requires users to know one more thing. It would be nicer if it were an R file. Anyone making an R package will know how an R file works. They may or may not know how to build a sane Makefile. Besides, the things that one is likely to want to do are R-ish (like running roxygen). But if a Makefile is the simplest way, it will likely solve my problems. But I suppose this is pretty low priority, since having the Rd files in the repository is not so terrible. (And as a side effect, it reminds you which documentation has changed when you do your commits.) |
I think I'm going to close this issue - it's relatively low priority and I think should probably be solved server side with better systems for automated building of R packages. |
Maintaining those
or something along these lines. What's wrong with creating documentation during build/install from
Source: https://github.com/krlmlr/R-pkg-template/tree/auto-roxygenize (The |
|
Thanks for your feedback.
|
|
To sum up the discussion:
How to proceed from here to be able to keep the redundant |
Although I do not want to mention the possible hack, I think you have a good point there, which is also what I wanted a few years ago (in my early days of using roxygen, I hated the bogus changes in GIT very much). What you can do is to hack the
Then roxygenization is done automatically, and you do not need to put |
@yihui: This is really evil. And beautiful. What do you mean by "no devtools support" -- no devtools support needed? This won't appear in the installed |
To confess, I used this trick once to hack r-forge.r-project.org because nobody answered me when I requested installing some dependencies. I don't dare using it on CRAN. Crandalf will not be happy seeing this, I guess. I mean no need to request devtools support. Wherever you can call R CMD build, you can use this trick. |
@hadley: Technically it's possible to keep |
@krlmlr Can you please start a new issue? I think the important things to discuss are how to record build time dependencies (version BuildDepends field) and what operations should be baked in. |
It would be nice if there were a way to signal to install_github() that some script should be run before installing, or at least that roxygen should be used to create Rd files and NAMESPACE. That way, derived files don't need to be kept in the repository.
The text was updated successfully, but these errors were encountered: