man {document} | R Documentation |
Display a Help Page From a File's Documentation
Description
Display a help
-like page from an existing R
documentation (*.Rd) file, a topic from a temporary package with
options("document_package_directory")
set or a topic from an R code
file containing roxygen2 documentation.
Usage
man(x, topic = NA, force_Rd = FALSE)
Arguments
x |
One of the following: |
topic |
A |
force_Rd |
if |
Value
Invisibly the status of display_Rd
.
Examples
document::document(file_name = system.file("files", "minimal.R",
package = "document"), check_package = FALSE)
document::man("foo")
# this equivalent to
path <- system.file("files", "minimal.R", package = "document")
document::man(x = path, topic = "foo")
[Package document version 4.0.0 Index]