diff --git a/R/rd.R b/R/rd.R index c659761dd..ab11b9d60 100644 --- a/R/rd.R +++ b/R/rd.R @@ -6,7 +6,8 @@ rd_text <- function(x, fragment = TRUE) { } rd_file <- function(path, pkg_path = NULL) { - set_classes(tools::parse_Rd(path, encoding = "UTF-8")) + macros <- tools::loadPkgRdMacros(pkg_path) + set_classes(tools::parse_Rd(path, macros = macros, encoding = "UTF-8")) } #' Translate an Rd string to its HTML output