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

时间: 2024-10-11 07:32:32

R安装package报ERROR: a 'NAMESPACE' file is required的相关文章

Sublime Text3 安装 markdownediting插件 报错 Error loading syntax file "Packages/Markdown/Markdown.tmLanguage":

问题: Error loading syntax file "Packages/Markdown/Markdown.sublime-syntax": 解决方法: ./Data/Local/ 清理掉 Session.sublime_session Auto Save Session.sublime_session 参考 github README.MD https://github.com/SublimeText-Markdown/MarkdownEditing/blob/master/

python27(32位)安装模块报错“error: Unable to find vcvarsall.bat”

1)首先,下载一个Microsoft Visual C++ Compiler for Python 2.7的补丁,下载地址在这里: http://www.microsoft.com/en-us/download/details.aspx?id=44266 2) 然后下载安装VS2008(对应VER9.0),如果电脑上安装的是VS2010(对应VER10.0), 可以在VS命令行下执行:SET VS90COMNTOOLS=%VS100COMNTOOLS% 如果你安装的是 2012 版(对应VER1

安装Linux报错Unable to read package metadata. This may

Unable to read package metadata. This may be due to missing repodata directory. Please ensure that your install tree has been correctly generated.  Failare: repodata/743fec56b2af0ce8d6ec82c47a4efafc2a4d18cddfa9683f29611cb18d1a33de-primary.sqlite.bz2 

编译安装libiconv报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)

错误如下:     In file included from progname.c:26:0:     ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)     _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");     ^     make[2]: *** [progname.o] Error 1     m

Mac安装Mysql-python _mysql.c:44:10: fatal error: 'my_config.h' file not found

解决步骤 brew install mysql brew unlink mysql brew install mysql-connector-c sed -i -e 's/libs="$libs -l "/libs="$libs -lmysqlclient -lssl -lcrypto"/g' /usr/local/Cellar/mysql/8.0.13/bin/mysql_config //后面的路径就是你 mysql 的安装路径,这个尤为重要,就是路径问题报错的

pip安装ujson报错: error:Microsoft Visual C++ 14.0 is required

在win10上pip安装ujson报错 之前一直用的是mac本,但由于疫情问题,最近不得不用win10系统来进行python开发,在使用pip安装依赖包ujson时,遇到了问题,如下: (custom_itsm) D:\DEVELOP\items\hn_test>pip install ujson DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python

vue报错 Module not found: Error: Cannot resolve 'file' or 'directory'

炸了,我好写sell而组件,直接就用了,我的天哪 看你的写了吗,就用: Module not found: Error: Cannot resolve 'file' or 'directory' 页另一种错误,按这种情况我没遇到:http://www.mamicode.com/info-detail-1564042.html vue报错 Module not found: Error: Cannot resolve 'file' or 'directory'

安装MySQL-python报错error: command 'gcc' failed with exit status 1

[[email protected] MySQL-python-1.2.3]# python setup.py install function) .... _mysql.c:133: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function) _mysql.c:380: error: '_mysql_ConnectionObject' has no member named 'connection' _mysql.c:382

Centos安装fabric 报错:error: ‘FFI_DEFAULT_ABI’ undeclared (first use in this function)

Centos安装fabric 报错: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function) 需要安装libffi-devel Debian或Ubuntu需要安装 libffi-dev