Learn R Programming

SimDesign (version 2.17.1)

SimCheck: 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)

Value

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

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

Author

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. tools:::Rd_expr_doi("10.20982/tqmp.16.4.p248")

See Also

runArraySimulation, SimCollect

Examples

Run this code
if (FALSE) {

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

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

}

Run the code above in your browser using DataLab