addTestDependency: Allows users to add package dependencies to unit testing,...

Description Usage Arguments Value Examples

View source: R/test.R

Description

Testing might fail if dependencies are not the same across platforms (e.g., different versions of jaspGraphs). If this is the case then those dependencies should be monitored and errors given when they do not match. This function allows you to define "unit test breaking" dependencies for plots

Usage

1
addTestDependency(dep, modulePath = getPkgOption("module.dirs"))

Arguments

dep

A single character value of a package name currently installed on your system

modulePath

Specify the path to the root directory of the module, or specify it through 'setPkgOption("/.../")'

Value

This function only has a side effect: updating figs/jasp-deps.txt

Examples

1
addTestDependency("jaspGraphs")

TimKDJ/JASPTools documentation built on July 21, 2021, 7:52 p.m.