Skip to content

Commit

Permalink
Fix missing Rd extension (for excluding overview) (#57)
Browse files Browse the repository at this point in the history
a26e5d8 didn't quite work as it was missing the Rd extension.
  • Loading branch information
TimTaylor authored Dec 13, 2024
1 parent 123b141 commit 8d14eca
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
Expand Up @@ -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)
Expand Down

0 comments on commit 8d14eca

Please sign in to comment.