Skip to content

Commit

Permalink
Reinstate macro loading
Browse files Browse the repository at this point in the history
Fixes #2782
  • Loading branch information
jayhesselberth committed Sep 18, 2024
1 parent ae56105 commit 23e4827
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 23e4827

Please sign in to comment.