将受密码保护的 xlsx 文件读入 R 而不安装 Java密码已知

问题描述

目前我正在为客户准备 R 课程。我们想从受密码保护的 xlsx 文件中读取数据。因此,我试图将这个受密码保护的 xlsx 文件读入 R(取消保护文件本身不是解决方案)。不幸的是,我无法使用包括安装其他软件(例如 Java)的方法

openxlsxreadrreadxl 似乎都不支持在 excel 文件中读取时使用密码

有两个软件包似乎支持这一点:xlsxexcel.link 我尝试过 xlsx 包,但它需要 Java。 XLConnect

也是如此

我尝试了 excel.link 包,但每次尝试打开文件时它都会崩溃(“R 会话中止”)。 RDCOMClient 也是如此。

不幸的是,Stackoverflow 帖子不适合我的问题:

How do you read a password protected excel file into r?

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

Import password-protected xlsx workbook into R

Reading Any kind of password protected file into R

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

遇到这些问题后,我只是更新了我的所有软件包。这是关于我的 R 版本的信息。

 version
               _                           
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64,mingw32             
status                                     
major          4                           
minor          0.3                         
year           2020                        
month          10                          
day            10                          
svn rev        79318                       
language       R                           
version.string R version 4.0.3 (2020-10-10)
nickname       Bunny-Wunnies Freak Out     

你知道其他适合我需要的软件包吗?您是否也知道为什么 excel.link 和 RODCOMClient 似乎根本不起作用?

非常感谢您的任何建议!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)