gpt4 book ai didi

r - 关于屏蔽函数的静音消息

转载 作者:行者123 更新时间:2023-12-04 12:05:21 48 4
gpt4 key购买 nike

我试图消除解释某些功能被其他包屏蔽的消息。我尝试了不同的组合,但没有一个能满足我的需求。

我拥有的块是:

<<loadpkgs, echo=FALSE, warning=FALSE, message=FALSE>>=
suppressPackageStartupMessages(library(doMC))
suppressPackageStartupMessages(library(aroma.affymetrix))
suppressPackageStartupMessages(library(crlmm))
suppressPackageStartupMessages(library(snpStats))
suppressPackageStartupMessages(library(pd.genomewidesnp.6))
suppressPackageStartupMessages(library(GenomicRanges))
suppressPackageStartupMessages(library(ggbio))
@

但是输出(我希望没有)是(在生成的 PDF 上):
## Loading required package:  foreach
## foreach: simple, scalable parallel programming from Revolution Analytics
## Use Revolution R for scalability, fault tolerance and more.
## http://www.revolutionanalytics.com
## Loading required package: iterators
## Loading required package: parallel
## Loading required package: R.utils
## Loading required package: R.oo
## Loading required package: R.methodsS3
## R.methodsS3 v1.5.2 (2013-10-06) successfully loaded. See ?R.methodsS3 for help.
## R.oo v1.15.8 (2013-10-10) successfully loaded. See ?R.oo for help.
##
## Attaching package: ’R.oo’
##
## The following objects are masked from ’package:methods’:
##
## getClasses, getMethods

关于如何解决这个问题的任何想法?

最佳答案

设置参数 warn.conflicts=FALSElibrary()

library(dplyr, warn.conflicts=FALSE)

应该做的伎俩。当可能有数百个或更多内核加载库时,这对于并行计算特别有用。

关于r - 关于屏蔽函数的静音消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20319826/

48 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com