9
如何将所有控制台输出保存到R中的文件?
我想将所有控制台文本重定向到文件。这是我尝试过的: > sink("test.log", type=c("output", "message")) > a <- "a" > a > How come I do not see this in log Error: unexpected symbol in "How come" 这是我在test.log中得到的: [1] "a" 这是我想要的test.log: > a <- "a" > a [1] "a" > How come I do not see this in log Error: …