且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

R:在安装软件包时出现unloadNamespace(package)问题

更新时间:2023-09-16 19:48:40

我遇到类似的错误.复制它的最低条件似乎是:

I get a similar error. Minimal conditions to reproduce it seem to be:

  1. Depend在包装x(在我的情况下为reshape)上
  2. 在小插图中装入一个包y(在我的情况下为plyr),该包也可以导入或依赖于x.
  1. Depend on a package x (in my case reshape)
  2. In your vignette load a packge y (in my case plyr) that also imports or depends on x.

如果在包装构建或检查过程之外构建小插图,则该小插图会很好地构建,但是会抛出您以其他方式表示的错误.该错误也是R版本的,并且可能是特定于站点的,因为在尝试在另一台计算机上构建软件包时,R 3.2.0消除了该错误.

The vignette builds fine if you build it outside of the package building or checking process, but throws the error that you indicate otherwise. The error is also R version and maybe site specific, since it goes away with R 3.2.0 when trying to build the package on a different machine.