【发布时间】:2021-02-08 00:31:45
【问题描述】:
我想在不关闭全局警告的情况下停止警告
此代码将进入一个函数,因此它可以在不同的会话中运行
这是我的代码
fit <-
plot_ly(credit_old,
y = ~score,
color = ~fte,
type = "box")
suppressWarnings(fit)
我还是得到了
Warning messages:
1: In RColorBrewer::brewer.pal(N, "Set2") :
minimal value for n is 3, returning requested palette with 3 different levels
2: In RColorBrewer::brewer.pal(N, "Set2") :
minimal value for n is 3, returning requested palette with 3 different levels
【问题讨论】: