-
Notifications
You must be signed in to change notification settings - Fork 115
Description
Having to work with SAS files created a unix system (SAS 9.4), we observed the following using read_sas()
with a catalog_file
(haven 2.5.1, R 4.2.1):
The catalog file (sas7bcat) seems to be ignored (no message, no error) if created on Unix, while read_sas()
works as expected for catalog files created on windows, irrespective of the system that the corresponding data file was created on.
The attached zip contains a reproducible example with recreations of haven's example sas data sets hadley.sas7bdat
and formats.sas7bcat
in different variations: both were recreated twice using either
- Windows: WINDOWS_64 or
- Unix: HP_UX_64, RS_6000_AIX_64, SOLARIS_64, HP_IA64
All data sets have wlatin1
encoding.
Both data files can be read with the Windows catalog file with formats being applied as expected, but no formats are available when using the Unix catalog file.