Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从 Excel 电子表格中触发 R 代码。除了Rexcel之外,我找不到任何选项。是否有任何替代或更简单的方法来做到这一点(可能是使用 VBA)?
在 VBA 中,您可以调用任何命令行程序,因此您可以在批处理模式下调用 R。
Call Shell("R --vanilla scriptfile.R outputfile.txt")