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.
我在 new.R 文件中有以下代码,在 RStudio 交互模式下工作正常。
system_command <- paste("WScript", " C:/Users/OneDrive/Desktop/r1.vbs") system(command = system_command)
但是当我使用 运行new.R文件时Rscript,它不会调用 vbs 脚本。有没有其他方法可以在 Rscript 模式下调用 vbs 脚本?
new.R
Rscript