Learn R Programming

sims (version 0.0.4)

sims_check: Check Simulated Data

Description

Checks the simulated data argument values in the '.sims.rds' file.

Usage

sims_check(path = ".")

Value

An informative error or invisible list of the argument values.

Arguments

path

A string of the path to the directory with the simulated data.

Details

The checks include whether number and names of the data files in the directory are consistent with the number of simulations.

Examples

Run this code
set.seed(10)
sims_simulate("a <- runif(1)",
  save = TRUE, path = tempdir(), exists = NA,
  ask = FALSE
)
(sims_check(tempdir()))

Run the code above in your browser using DataLab