ディフェンシブRプログラミング
Dr. Colin Gillespie
Jumping Rivers
CV 1 of 10 complete
CV 2 of 10 complete
CV 3 of 10 complete
suppressMessages() で表示を抑制できます
noisy = function(a, b) {
message("I'm doing stuff")
a + b
}
noisy(1, 2)
I'm doing stuff
# [1] 3
suppressMessages(noisy(1, 2))
# [1] 3
suppressPackageStartupMessages(library("ggplot2"))
message() は、次の人たちに状況を知らせるのに便利です。
長時間の処理で特に有用です
ディフェンシブRプログラミング