detect_dependencies: Detect Dependencies

Description Usage Arguments Value Examples

Description

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.

Usage

1
2
detect_dependencies(path = getwd(), import_functions = input,
  export_functions = output, source_detect = TRUE, detect_cycle = TRUE)

Arguments

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.

Value

A dataframe showing the edge list of dependencies between files.

Examples

1
2
3
detect_dependencies(
	system.file("test_project", package = "easyMake")
	)

GShotwell/easyMake documentation built on May 6, 2019, 5:31 p.m.