The MplusAutomation::readModels() function from the MplusAutomation package reads all special characters in file names, such as brackets, dashes, and spaces, in as full stops. This is problematic for determining the name of the file. This function replaces all special characters in file names with underscores, renaming the files. These can then be read in correctly by MplusAutomation::readModels(). Warning: it is recommended that you back up the files before renaming

fix_file_names(dir)

Arguments

dir

A directory

Value

Renamed files