Skip to content

Commit

Permalink
Reinstate macro loading (#2783)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayhesselberth authored Sep 18, 2024
1 parent 82ed5ba commit c0cbde4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/rd.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0cbde4

Please sign in to comment.