SimCheck: Check for missing files in array simulations

View source: R/SimCheck.R

SimCheckR Documentation

Check for missing files in array simulations

Description

Given the saved files from a runArraySimulation remote evaluation check whether all .rds files have been saved. If missing the missing row condition numbers will be returned.

Usage

SimCheck(dir = NULL, files = NULL, min = 1L, max = NULL)

Arguments

dir

character vector input indicating the directory containing the .rds files (see files)

files

vector of file names referring to the saved simulation files. E.g. c('mysim-1.rds', 'mysim-2.rds', ...)

min

minimum number after the '-' deliminator. Default is 1

max

maximum number after the '-' deliminator. If not specified is extracted from the attributes in the first file

Value

returns an invisible TRUE if all the files are present and FALSE otherwise

Author(s)

Phil Chalmers rphilip.chalmers@gmail.com

References

Chalmers, R. P., & Adkins, M. C. (2020). Writing Effective and Reliable Monte Carlo Simulations with the SimDesign Package. The Quantitative Methods for Psychology, 16(4), 248-280. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.20982/tqmp.16.4.p248")}

See Also

runArraySimulation, SimCollect

Examples

## Not run: 

# if files are in mysimfiles/ directory
SimCheck('mysimfiles')

# specifying files explicility
setwd('mysimfiles/')
SimCheck(files=dir())


## End(Not run)


SimDesign documentation built on Sept. 11, 2024, 8 p.m.