Skip to contents

.out is a very generic extension (also used for compiled Unix binaries, generic tool logs, etc.), unlike .spv/.smcl which are unambiguously SPSS/Stata-specific – so, unlike those formats, a .out found in a repository is not safely assumed to be Mplus by extension alone. Classification (data_classify_files()/.fixed_ext_type) still keys on the extension so a .out is downloaded in the first place (content can't be checked before it's fetched), but this content check runs AFTER download to catch and reclassify a false positive – Mplus always prints its own version banner as the file's first real line, so this is a cheap, reliable real/not-real test.

Usage

.mplus_is_genuine_output(path)

Arguments

path

path to a local file

Value

TRUE if the file's content is genuine Mplus output, FALSE otherwise (including if it cannot be read at all)