“One of the idiosyncrasies of Windows is that directory creation may report success but create a directory with a different name, for example dir.create(“G.S.”) creates ‘”G.S”’. This is undocumented, and what are the precise circumstances is unknown (and might depend on the version of Windows). Also avoid directory names with a trailing space. Check it out in the R Documentation by typing ?dir.create() in the R console.