module_test: Test an outsider module

View source: R/build.R

module_testR Documentation

Test an outsider module

Description

Ensure an outsider module builds, imports correctly and all its functions successfully complete.

Usage

module_test(flpth = getwd(), verbose = FALSE, pull = FALSE)

Arguments

flpth

File path to location of module

verbose

Print docker and program info to console

pull

Pull image from Docker Hub? T/F

Details

Success or fail, the module is uninstalled from the machine after the test is run.

Value

Logical

See Also

Other build: module_build(), module_check(), module_identities(), module_skeleton(), module_travis(), module_upload()

Examples

library(outsider)
repo <- 'dombennett/om..hello.world'
# installs, checks functions, runs function examples, uninstalls
# module must already be uploaded to GitHub and Docker Hub
# NOT RUN
# module_test(repo = repo, verbose = TRUE)

AntonelliLab/outsider.devtools documentation built on June 20, 2022, 4:36 a.m.