• R语言
  • 请教一个关于package的问题

最近准备做一个包,先用一个很简单的test了下

前面关于windows下所需要安装的也都做了

但是在运行R CMD check test时出现了以下错误:

* using log directory 'D:/work/test.Rcheck'

* using R version 2.8.1 (2008-12-22)

* using session charset: CP936

* checking for file 'test/DESCRIPTION' ... OK

* this is package 'test' version '0.0'

* checking package name space information ... OK

* checking package dependencies ... OK

* checking if this is a source package ... OK

* checking for .dll and .exe files ... OK

* checking whether package 'test' can be installed ... OK

* checking package directory ... OK

* checking for portable file names ... OK

* checking DESCRIPTION meta-information ... OK

* checking top-level files ... OK

* checking index information ... OK

* checking package subdirectories ... OK

* checking R files for non-ASCII characters ... OK

* checking R files for syntax errors ... OK

* checking whether the package can be loaded ... ERROR

Error in library.dynam(lib, package, package.lib) :

  找不到共享图书馆'test'

错误: 'test'程辑包/名字空间载入失败,

停止执行



It looks like this package has a loading problem: see the messages for

details.

请知道的不吝指导下。3x



我好像也遇到过同样的问题,后来忘了是怎么解决的了。不过这样肯定是可以解决的:
R CMD INSTALL test


然后再CHECK
貌似还是不行啊。

R CMD INSTALL test

后确实装载进去了

library(test)时出现了:

Error in library.dynam(lib, package, package.lib) :

  找不到共享图书馆'test'

再运行R CMD check test

出现同样的错误