Checks that the folder provides one obvious script a reviewer can run to
reproduce the analysis (for example run.R or main.R). Returns evidence
with indicator_id = "R-REPRO-003".
Arguments
- path
Path to the submission's analysis code folder.
- ctx
A run context from
r4subcore::r4sub_run_context(). WhenNULLa default context is created from the folder name.- config
A configuration from
repro_config_default(). WhenNULLthe default configuration is used.
Examples
d <- file.path(tempdir(), "sub003")
dir.create(d, showWarnings = FALSE)
writeLines("source('a.R')", file.path(d, "run.R"))
ev <- suppressMessages(assess_entry_point(d))
ev$result
#> [1] "pass"