Skip to contents

Evaluate the recipe contained in a WORCS project to derive its endpoints.

Usage

reproduce(worcs_directory = ".", verbose = TRUE, check_endpoints = TRUE, ...)

Arguments

worcs_directory

Character, indicating the WORCS project directory to which to save data. The default value "." points to the current directory. Default: '.'

verbose

Logical. Whether or not to print status messages to the console. Default: TRUE

check_endpoints

Logical. Whether or not to call check_endpoints() after reproducing the recipe. Default: TRUE

...

Additional arguments.

Value

No return value. This function is called for its side effects.

Examples

# Create directory to run the example
old_wd <- getwd()
test_dir <- file.path(tempdir(), "reproduce")
dir.create(test_dir)
setwd(test_dir)
file.create(".worcs")
#> [1] TRUE
worcs:::add_recipe(recipe = 'writeLines("test", "test.txt")')
#>  Adding recipe to '.worcs'.
# Cleaning example directory
setwd(old_wd)
unlink(test_dir, recursive = TRUE)