Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing Rd extension (for excluding overview)
Browse files Browse the repository at this point in the history
a26e5d8 didn't quite work as it was missing the Rd extension.
TimTaylor authored Dec 13, 2024
1 parent 123b141 commit 4a9ee9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/package.R
Original file line number Diff line number Diff line change
@@ -294,7 +294,7 @@ pkg_manual = function(
links = sub(r, 'https://rdrr.io/cran/\\1/man/', links)

db = tools::Rd_db(name) # all Rd pages
intro = paste0(name, '-package') # the name-package entry (package overview)
intro = paste0(name, '-package.Rd') # the name-package entry (package overview)
entries = setdiff(names(db), intro)
db = db[c(if (overview && intro %in% names(db)) intro, entries)]
al = lapply(db, Rd_aliases)

0 comments on commit 4a9ee9e

Please sign in to comment.