R安装package报ERROR: a 'NAMESPACE' file is required
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了R安装package报ERROR: a 'NAMESPACE' file is required相关的知识,希望对你有一定的参考价值。
R安装package报错:
[[email protected] mysofts]# R CMD INSTALL trimcluster_0.1-1.tar.gz * installing to library ‘/usr/local/lib64/R/library‘ WARNING: omitting pointless dependence on ‘R‘ without a version requirement * installing *source* package ‘trimcluster‘ ... ERROR: a ‘NAMESPACE‘ file is required * removing ‘/usr/local/lib64/R/library/trimcluster‘
解决方案:
#解压 tar -xzf trimcluster_0.1-1.tar.gz #写入NameSpace cd trimcluster echo ‘exportPattern( "." )‘ > NAMESPACE cd .. #打包 tar -zcf trimcluster.tar.gz trimcluster #再次安装 R CMD INSTALL trimcluster.tar.gz
安装成功!
以上是关于R安装package报ERROR: a 'NAMESPACE' file is required的主要内容,如果未能解决你的问题,请参考以下文章
python安装模块的时候报错error: command 'gcc' failed with exit status 1
解决pip install package时Fatal error in launcher: Unable to create process using '"e:python36(
安装python模块报错 error: command 'gcc' failed with exit status 1
自定义View的ToolBar布局报错Error: No resource identifier found for attribute 'context' in package(代码