我的问题是,在我的导入文件中有两个具有调用功能的包,alpha
但是在我的代码中,我仅使用包中的那个ggplot2
(另一个包是psychometric
)。检查后,我收到此警告:
警告:加载“ mypackage”时,用“ psychometric :: alpha”替换以前的导入
说明文件:
Imports: deltaPlotR, difNLR, difR, foreign, ggplot2, gridExtra, ltm, moments, nnet, psychometric, reshape2, shiny, shinyAce
命名空间文件:
import(shiny,
shinyAce,
moments,
foreign,
nnet,
ggplot2,
reshape2,
ltm,
psychometric,
difR,
deltaPlotR,
gridExtra,
difNLR)
虽然我同时使用了两个软件包(ggplot2
和psychometric
)中的许多函数,import(psychometric, exclude = alpha)
但是我遇到了一个错误:
错误
不需要命名空间依赖项:“ alpha”
无需更改名称空间和导入,我们可以显式调用该函数:
ggplot2::alpha()
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句