How to read an .xls file that is encrypted with R?

扶醉桌前 提交于 2019-12-10 22:05:44

问题


Typically I use the readxl package (which is quite good) for reading excel files:

 read_excel(path = 'ihateexcel.xls', sheet = 1)

However, the session will essentially freeze if I try and read an encrypted .xls file. Obviously don't want to save the file as .csv as I'll lose the encryption or have to use another encryption. Can't seem to find this functionality in other packages xlsx either.

How do I read an .xls file that is encrypted in excel?


回答1:


excel.link can help you in opening password protected files.

You can pass your 'password' in one of the arguments.

Usage

xl.read.file(filename, ...... password = NULL)


来源:https://stackoverflow.com/questions/34233738/how-to-read-an-xls-file-that-is-encrypted-with-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!