I need to read a dataset into R from a file that has to be password protected. It's currently an SPSS file, but I'm allowed to convert it into a password protected excel file. I tried using excel.link's xl.read.file, but it prompts me to open excel and enter the password and then it just hangs forever. I'm not married to data being in excel. I'd just like a straight forward way to read in some kind of password protected file into R.
Here's the code I was trying:
library(excel.link)
x <- xl.read.file("Y:/Path/data.xlsx",
password = "123",
write.res.password = "123")
I also tried to use this solution: https://stat.ethz.ch/pipermail/r-help/2011-March/273660.html
But I need the packages to be from CRAN.