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.
我正在使用 Rscript 运行批处理。我想将消息打印到屏幕上,就像 bash 中的“echo”一样。所以我使用“打印”功能。
问题是 print 的输出没有显示在屏幕上。它转而转到日志文件。任何人都知道R中的回声等价物是什么?
正如托马斯在评论中指出的那样......
message ("Print this on the screen")
有关更多信息,您可以查看消息文档