To build documentation for a single code file, we need a temporary package. Of course the code file should contain roxygen2 comments.
fake_package(file_name, working_directory = NULL, dependencies = NULL, ...)
The name of the R code file to be documented.
A working directory. Keep the default.
A character vector of package names the functions depend on.
Arguments passed to get_lines_between_tags.
get_lines_between_tags
A string containing the path to the faked package.
# NOT RUN { fake_package(file_name = system.file("tests", "files", "simple.R", package = "document")) # }
Run the code above in your browser using DataLab