-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[R] Add additional DESCRIPTION fields for dev dependencies and update docs accordingly #28485
Comments
Ian Cook / @ianmcook: For some dev dependencies such as roxygen2, a version of the package does exist on CRAN, but we want the newer dev version of it from GitHub. In such cases, wouldn’t it be fine to just use Suggests:
roxygen2
Remotes:
r-lib/roxygen2
|
Jonathan Keane / @jonkeane: On the other hand using I think leaving it with a version number requirement is not great — we would need to confirm that the new version is released to cran before we can send it (since it would fail the version check there and complain, right?) and it's possible for someone to have installed roxygen2 from github before this feature was added, but after the number was bumped so it would appear at install time that the dependency is satisfied, but then the errors when redocumenting would be weird. |
Dragoș Moldovan-Grünfeld / @dragosmg: We could use multiple "Config/Needs/..." fields and then install all dependencies with a single call to install_deps(".", dependencies = c("soft", "Config/Needs/website", "Config/Needs/dev")) , where I think if someone has the development version of roxygen2 installed and they attempt to install dependencies, |
Dragoș Moldovan-Grünfeld / @dragosmg: Reprex (needs to be run inside a package that has # fs and memoise are pkgdown dependencies
remove.packages(c("pkgdown", "fs", "memoise"))
remotes::install_deps(".", dependencies = "Config/Needs/website")
packageVersion("pkgdown")
# [1] ‘2.0.1’
packageVersion("fs")
# Error in packageVersion("fs") : there is no package called ‘fs’
packageVersion("memoise")
# Error in packageVersion("memoise") : there is no package called ‘memoise’ adding remotes::install_deps(".", dependencies = c("hard", "Config/Needs/website"))
# or
remotes::install_deps(".", dependencies = c("soft", "Config/Needs/website")) In conclusion, I propose we delay using the |
Jonathan Keane / @jonkeane: |
Dragoș Moldovan-Grünfeld / @dragosmg: |
Dragoș Moldovan-Grünfeld / @dragosmg:
|
Nicola Crane / @thisisnic: |
Edit: Blocked by a bug in {remotes} which results in second order dependencies of packages listed in
Config/Needs?...
not being installed.Recent updates to the remotes package mean that additional fields can be added to a package's DESCRIPTION and remotes functions can take the field as a parameter and install these additional dependencies: https://github.com/r-lib/remotes/blob/master/NEWS.md#new-functions-and-features
We could update DESCRIPTION to use these fields and update the docs to use this functionality of remotes instead of having separate references to packages to install.
Reporter: Nicola Crane / @thisisnic
Assignee: Dragoș Moldovan-Grünfeld / @dragosmg
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-12743. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: