Bioconductor / BiocCheck

http://bioconductor.org/packages/BiocCheck
8 stars 26 forks source link

include macros location when using Rdpack #196

Closed LiNk-NY closed 1 year ago

LiNk-NY commented 1 year ago

If the package has an Rdpack dependency, the call to tools::parse_Rd should include the Rdpack macros location. For example, the macros argument should be:

tools::parse_Rd("man/run_mash.Rd", macros= file.path(system.file(package = "Rdpack"), "help", "macros", "refmacros.Rd"))
LiNk-NY commented 1 year ago

See example at https://github.com/Bioconductor/Contributions/issues/2955

Warning in tools::parse_Rd(manpage) :
  /Users/user/bioc/package/man/run_mash.Rd:21: unknown macro '\insertCite'