vroom::vroom()
提供了一个非常详细的message
来进行控制台。例如:
> my_data = vroom::vroom("my_data.csv")
## Rows: 6,608
## Columns: 9
## Delimiter: ";"
## chr [2]: panel_rev, pcb_rev
## dbl [5]: panel_id, panel_type, work_order_lot_id, location_id, panel_number
## dttm [2]: marking_dt, created_dt
##
## Use `spec()` to retrieve the guessed column specification
## Pass a specification to the `col_types` argument to quiet this message
除了my_data = suppressMessages(vroom::vroom("my_data.csv"))
以外,还有没有其他方法可以使它静音?
答案 0 :(得分:0)
到目前为止,您最好的选择是隐藏消息并隐藏进度条,如下所示:
通过设置此环境变量来抑制进度条
def startLicenseServer() {
sh '''
cd "/home/oracle/License"
sh ./startLicServer.sh start
'''
}
通过以下方式禁止显示消息:
const grid = document.getElementById("grid");
const cells = [...grid.querySelectorAll(".cell")];
let recentActive;
grid.onclick = event => {
event.stopPropagation();
const { className } = event.target;
if (!className.includes("cell")) {
return;
}
let compareMask = recentActive && recentActive.compareDocumentPosition(event.target);
let property = compareMask == 2 ? "nextElementSibling" : "previousElementSibling";
let state = event.target.classList.toggle("active");
let sibiling = event.target[property];
while (event.ctrlKey && state && !sibiling.classList.contains("active")) {
sibiling.classList.add("active");
sibiling = sibiling[property];
}
recentActive = event.target;
};