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.
我有一个 R 脚本(它打开一个显示地图和一些数据),我可以使用source("myFile.R"). 但是,当我尝试调用 with 时rscipt.exe,什么也没有发生。如何让图形窗口出现?谢谢
source("myFile.R")
rscipt.exe
它确实绘图,但脚本立即退出,你永远不会注意到。你可以试试这个——
x11() plot(1:10) locator(1)
或者一些系统睡眠也应该起作用。