Opening password protect SAS file in R studio

Description of issue - I need to open a SAS file protected by a password in R studio.
Is it possible? If so, how?

I tried opening with the import icon on the menu, and also, with the code below

library(haven)
name of the SAS file <- read_sas("Desktop/path to the file",

  • NULL)
    
File has unsupported compression scheme

ReadStat: Error parsing page 0, bytes 1024-119807
Error in df_parse_sas_file(spec_data, spec_cat, encoding = encoding, catalog_encoding = catalog_encoding, :
Failed to parse /path to the file: File has unsupported compression scheme.

System Information:

  • RStudio Edition: (Desktop or Server): Desktop
  • RStudio Version: Version 1.3.1093
  • OS Version: Big Sur 11.2
  • R Version:
  • sessionInfo():

Referred here from support.rstudio.com

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.