Skip to contents

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 vector of missing indicies. If no missing then an empty vector is returned

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. doi:10.20982/tqmp.16.4.p248

Author

Phil Chalmers rphilip.chalmers@gmail.com

Examples

if (FALSE) { # \dontrun{

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

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

} # }