Skip to content

Commit

Permalink
Fix R documentation generation
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Jun 17, 2024
1 parent c07d899 commit 297249f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/api/r.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ The webR R API is provided via a pre-installed `webr` support package.
library(rvest)
files <- list.files(path="../../../packages/webr/man/", pattern="*.Rd", full.names=TRUE)
for (f in files) {
capture.output(tools::Rd2HTML(f)) |>
capture.output(tools::Rd2HTML(f, standalone = FALSE)) |>
paste(collapse = '\n') |>
minimal_html() |>
html_elements(xpath="//*[contains(@class, 'container')]/*[position() >= 2]") |>
html_elements(xpath="//body") |>
paste(collapse='') |>
writeLines()
}
Expand Down

0 comments on commit 297249f

Please sign in to comment.