-
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
Inherit group params exactly #1316
Conversation
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 don't understand all the technical bits, but it overall looks great! I ran this on iv too and it worked well DavisVaughan/ivs#12
R/rd-inherit.R
Outdated
@@ -174,8 +176,12 @@ inherit_dot_params <- function(topic, topics, env) { | |||
docs <- lapply(inheritors$source, find_params, topics = topics) | |||
arg_matches <- function(args, docs) { | |||
doc_args <- str_split(names(docs), ", ?") |
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.
Do you need doc_args
anymore?
#' B | ||
#' | ||
#' @inheritParams A | ||
B <- function(x, y) {}" |
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.
Should you add a test where the args here are .x
and .y
to ensure that works? I tested it and it does work right, but a test may keep it from breaking in the future
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.
Good catches, thanks
…ent_base, otherwise the latter can't inherit it from the former because of the change in roxygen2 7.2.0: r-lib/roxygen2#1316
…n 2.15 Carson Sievert (1): Fix html_document's client-side navbar updating in Bootstrap 5 (#2384) Christophe Dervieux (2): Add support for native math by default in Github document (#2362) Test pandoc-devel on ubuntu latest (#2398) Garrick Aden-Buie (1): Use `while` instead of `for` loop when adjusting pandoc styles (#2380) Maëlle Salmon (1): Fix typo (#2392) Michael Chirico (1): fix typos (#2386) Yihui Xie (4): mark tufte_handout() as defunct use tufte::tufte_handout in test, and remove tufte_handout in doc moving the doc of extra_dependencies from html_document to html_document_base, otherwise the latter can't inherit it from the former because of the change in roxygen2 7.2.0: r-lib/roxygen2#1316 CRAN release v2.15
Fixes #950
Example with ggplot2 at tidyverse/ggplot2#4791