-
Notifications
You must be signed in to change notification settings - Fork 155
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
Simplify handling of Suggested
dependencies
#1394
Conversation
* So a top-level `DESCRIPTION` is treated the same way regardless of whether it's a "Package" description or not. * Document how "development dependencies" are found in `dependencies()` * Impute a roxygen2/devtools dependency if the package has a `RoxygenNote` field
To get the tests to pass, I kept pulling the string and it kept getting longer and longer. I think I see a simpler/cleaner approach so no need to review until I've tried that. |
@@ -195,14 +210,6 @@ test_that("Suggest dependencies are ignored by default", { | |||
expect_false(renv_package_installed("egg")) | |||
}) | |||
|
|||
test_that("Suggest dependencies are used when requested", { |
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.
Moved to install.R
which is a better location.
@kevinushey It's worth taking another look at this now, since I've also slightly changed the meaning of |
renv_dependencies_list( | ||
path, | ||
extract_chr(matches, 2L), | ||
extract_chr(matches, 3L), | ||
extract_chr(matches, 4L), | ||
dev | ||
dev = field == "Suggests" |
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.
FWIW I think the reason I had this was to avoid issues with DESCRIPTION files located in sub-directories within a project, but that imply separate considerations (e.g. should we really be parsing those for dependencies at all from the top-level?)
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.
LGTM!
DESCRIPTION
is now treated the same way regardless of whether it's a "Package" or not.settings$package.dependency.fields()
no longer affects transitive dependencies.dependencies()