Skip to content

Instantly share code, notes, and snippets.

@bfatemi
Created September 17, 2019 18:58
Show Gist options
  • Save bfatemi/a8490fe0d482a724f51c74ce43fbd3a9 to your computer and use it in GitHub Desktop.
Save bfatemi/a8490fe0d482a724f51c74ce43fbd3a9 to your computer and use it in GitHub Desktop.
generate html page from .Rd file and view it
site_index_path <- tempfile("index_", fileext = ".html")
stopifnot( file.create(site_index_path) )
tools::Rd2HTML(
tools::parse_Rd("man/f_add.Rd"),
out = site_index_path
)
rstudioapi::viewer(site_index_path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment