R批处理模式 - 抑制输出文件

时间:2022-12-26 06:09:08

I have some scripts that I run using R's batch mode.

我有一些脚本,我使用R的批处理模式运行。

/usr/bin/R CMD BATCH --vanilla --no-timing ~/scripts/R/sess_dur.R

I redirect the output to a file using:

我使用以下方法将输出重定向到文件:

> sink("~/scripts_output/R_output.txt",append=TRUE)

The problem is that when I run this script, files are created with the same name of the script and the "out" suffix (sess_dur.Rout).

问题是,当我运行此脚本时,将使用相同的脚本名称和“out”后缀(sess_dur.Rout)创建文件。

There is some way to tell R not to generate these files?

有一种方法告诉R不要生成这些文件?

1 个解决方案

#1


10  

Have you tried something like:

你尝试过类似的东西:

R CMD BATCH --vanilla --no-timing ~/scripts/R/sess_dur.R /dev/null

#1


10  

Have you tried something like:

你尝试过类似的东西:

R CMD BATCH --vanilla --no-timing ~/scripts/R/sess_dur.R /dev/null

相关文章