Skip to contents

Flags dependencies that are invisible to a reviewer: .Rprofile or .Renviron files in the folder, environment variables set in code, or preloaded workspaces (load() of an .RData file). Setting the environment or loading a saved workspace is a fail; only reading the environment is a warn. Returns evidence with indicator_id = "R-REPRO-004".

Usage

assess_hidden_setup(path, ctx = NULL, config = NULL)

Arguments

path

Path to the submission's analysis code folder.

ctx

A run context from r4subcore::r4sub_run_context(). When NULL a default context is created from the folder name.

config

A configuration from repro_config_default(). When NULL the default configuration is used.

Value

A validated evidence table.

Examples

d <- file.path(tempdir(), "sub004")
dir.create(d, showWarnings = FALSE)
writeLines("library(dplyr)", file.path(d, "a.R"))
ev <- suppressMessages(assess_hidden_setup(d))
ev$result
#> [1] "pass"