ERROR: a 'NAMESPACE' file is required 的解决方案
来源:互联网 发布:c语言求质数用while 编辑:程序博客网 时间:2024/05/18 23:27
在利用R自己写一个R源文件的时候,具体参见上一篇博文,出现
解决方案相关网页:
http://stackoverflow.com/questions/17196225/error-a-namespace-file-is-required
http://stackoverflow.com/questions/10239213/working-with-package-without-namespace-in-r
http://questiontrack.com/error-a-39namespace39-file-is-required-1043658.html
总之观点是:由于较新的R版本需要NAMESPACE文件,不再支持生成默认的NAMESPACE
可以如此解决:直接自己新建一个不带任何后缀文件名为NAMESPACE 里面写
exportPattern("^[^\\.]")
也可如此解决:
roxygen2还实现了一些自动功能,比较重要的就是对命名空间文件NAMESPACE和描述文件DESCRIPTION的自动更新,这些我们第五节再说。先说如何从roxygen注释翻译到Rd文档,很简单:如果一个包已经按第二节的结构写好(不需要有man文件夹),函数和相应的roxygen注释都已经存在,那么用函数roxygenize()
就可以把这样一个初级包翻译为一个完整R包了:
setwd('/a/b/c/') # 先把工作目录切换到pkg之上library(roxygen2)roxygenize('pkg')这样之后再 R CMD INSTALL 。。
- ERROR: a 'NAMESPACE' file is required 的解决方案
- VS2012 error : Required file tracker.exe is missing 解决办法
- Required MultipartFile parameter 'file' is not present error
- springMVC Required MultipartFile parameter 'file' is not present error
- VS2012 error : Required file tracker.exe is missing 解决办法
- VS2012 error : Required file tracker.exe is missing 解决办法(转)
- Python error: Microsoft Visual C++ 9.0 is required 解决方案
- Python error: Microsoft Visual C++ 9.0 is required 解决方案
- 安装emacs 23.2的错误:configure: error: a system implementation of alloca is required
- Error:a bytes-like object is required not str
- error C2039: 'memchr' : is not a member of '`global namespace''
- error C2653: 'QMessageBox' : is not a class or namespace name
- error C2039: \'NotifyWinEvent\' : is not a member of \'`global namespace\'\'
- 【ERROR】eclipse is running in a JRE,but a JDK is required
- python 3.5: TypeError: a bytes-like object is required, not 'str' when writing to a file
- There is an error in invoking javac. A full JDK (not just JRE) is required...
- There is an error in invoking javac. A full JDK (not just JRE) is required
- There is an error in invoking javac. A full JDK (not just JRE) is required问题解决
- 解决Sublime Text 2中文显示乱码问题
- APN参数设置地方
- C++ 核心
- 查看jvm内存使用情况
- Android AIDL进程通信 记录
- ERROR: a 'NAMESPACE' file is required 的解决方案
- 80386保护模式段式寻址
- ASP.NET2005 设置GridView表头的背景图片
- ORA-00119: invalid specification for system parameter LOCAL_LISTENER
- 在Spring3中,配置DataSource的方法有6种
- C 语言核心
- Weblogic :解决Managed Server启动非常慢的情况
- Latex等号对齐
- 设备寄存器静态映射的建立