extract_code_source {rdocdump} | R Documentation |
Helper function to extract code from package source files.
This function reads all .R
files in the R
directory and optionally includes files from the tests
directory.
It can also exclude roxygen2 documentation lines.
Description
Helper function to extract code from package source files.
This function reads all .R
files in the R
directory and optionally includes files from the tests
directory.
It can also exclude roxygen2 documentation lines.
Usage
extract_code_source(pkg_path, include_tests = FALSE, include_roxygen = FALSE)
Arguments
pkg_path |
Path to the package source directory. |
include_tests |
|
include_roxygen |
|
Value
A single string containing the source code from the package's R files.
[Package rdocdump version 0.1.0 Index]