How do you read a password protected excel file into r?
I have tried excel.link but its not available for R version 3.2.3 (My version)
I also tried RDCOMClient but it is also not available for R version 3.2.3
I just used xl.read.file
from the excel.link
package.
https://rdrr.io/cran/excel.link/man/xl.read.file.html
It was very straightforward.
Using the same test file from the previous answer (https://github.com/miraisolutions/xlconnect/files/794219/TestWorkbook.xlsx).
install.packages("excel.link") library("excel.link") dat <- xl.read.file("TestWorkbook.xlsx", password = "pass", write.res.password="pass") dat
(The file I needed only had one password, unlike the test file, so I didn't need the last argument for my use.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With