I have a long list of very large SAS files. I want to import them using read_sas. To increase speed and reduce memory usage I want to only import the columns I am interested in using cols_only.
The trouble is, I have a long list of possible column names - but not every column is in my dataset. If I pass the full list to cols_only, I get the error:
Evaluation error: Column 2 must be named.
Is there a way to suppress this error, and encourage read_sas to do its best to import whatever variables it can from the list I have passed?