【发布时间】:2021-11-04 10:59:50
【问题描述】:
我正在尝试将 Bioconductor 包“simpIntLists”中的一个函数包含在我自己的包中。 “import(simpIntLists)”被添加到命名空间文件中。 但是,该函数导致错误
do_xy <- function(organism, IDType){
network <- simpIntLists::findInteractionList(organism, IDType)
}
do_xy("human", "EntrezId")
#Error message
data set ‘HumanBioGRIDInteractionEntrezId’ not foundError in get("HumanBioGRIDInteractionEntrezId") :
object 'HumanBioGRIDInteractionEntrezId' not found
# results in the same error (outside of the function)
simpIntLists::findInteractionList(organism, IDType)
附加 simpIntLists 后效果很好
# works
library(simpIntLists)
network <- simpIntLists::findInteractionList(organism, IDType)
【问题讨论】:
-
您能否提供更多细节?
simpIntLists包从何而来?你是什么意思你把它添加到命名空间?network行不在函数中时是否有效?