rstudio/rstudio#17149 implements RStudio autocompletion for params inherited via @inheritDotParams.
Since there is no indication that @inheritDotParams was used, the implementation currently traverses the Rd and looks for the structure defined in
|
rd <- paste0( |
|
"\n", |
|
" Arguments passed on to ", |
|
from, |
|
"\n", |
|
" \\describe{\n", |
|
args, |
|
"\n", |
|
" }" |
|
) |
.
This makes it very brittle and sensitive to changes in formatting (though workable). It would be great if instead the use of inheritDotParams was recorded more directly.
Per @kevinushey's suggestion on the PR
I could imagine something like a .ROXYGEN2. environment in the package's namespace that stores roxygen2 metadata of this form.
rstudio/rstudio#17149 implements RStudio autocompletion for params inherited via
@inheritDotParams.Since there is no indication that
@inheritDotParamswas used, the implementation currently traverses the Rd and looks for the structure defined inroxygen2/R/rd-inherit.R
Lines 281 to 290 in 93b8778
This makes it very brittle and sensitive to changes in formatting (though workable). It would be great if instead the use of inheritDotParams was recorded more directly.
Per @kevinushey's suggestion on the PR