Description Usage Arguments Value Examples
Detect dependencies within files. This is accomplished by reading the filenames passed to the various input and output R funcitons, then matching those filenames between the different R files. The assumption is that all the files imported to an R script are pre-requisites for that script, and the R script is the pre-requiste for all exported files.
1 2 | detect_dependencies(path = getwd(), import_functions = input,
export_functions = output, source_detect = TRUE, detect_cycle = TRUE)
|
path |
A string listing the filepath to search, defaults to the working directory. |
import_functions |
A character vector listing the import functions. This defaults to a pre-populated list, but you can pass your own list if you only want to detect certain dependencies. |
export_functions |
A character vector listing the export functions. This defaults to a pre-populated list, but you can gpass your own list if you only want to detect certain dependencies. |
source_detect |
Logical. Do you want to detect dependencies between R files when one R script sources another one? |
detect_cycle |
Do you want easyMake to automatically warn you when a script depends on its own output? If FALSE this function will run faster, but may lead to invalid Makefiles. |
A dataframe showing the edge list of dependencies between files.
1 2 3 | detect_dependencies(
system.file("test_project", package = "easyMake")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.