Rev 89536 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
## To be compared against saved reference outputif (isNamespaceLoaded("tools")) unloadNamespace("tools")Sys.setenv("R_HELP_BIBSTYLE" = "JSS") # fix \bibshow stylelibrary(tools)Rd2txt_options(underline_titles = FALSE)## Test processing and conversion of bibtools.RdRd2txt("bibtools.Rd", stages = "build") |>assertWarning(verbose = TRUE)## Also test for changes in HTML conversionRd2HTML("bibtools.Rd", out <- "bibtools.html",stages = "build", standalone = FALSE) |>assertWarning() # the same## FIXME: carry-over of unshown citation (cache not cleared)if (!Rdiff(out, "bibtools.html.save")) unlink(out)## Check cited but not shownpkgdir <- package.skeleton("bibtools", list = ".NotYetImplemented",path = tempdir()) |> suppressMessages()file.copy("bibtools.Rd", file.path(pkgdir, "man")) |> stopifnot()tools:::.check_Rd_bibentries_cited_not_shown(dir = pkgdir)## ("unexpected_macro_expansion" as there is no build/partial.rdb)