微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

解决方法:错误:需要一个“ NAMESPACE”文件

如何解决解决方法:错误:需要一个“ NAMESPACE”文件

我正在尝试在Linux机器上安装它:

R CMD INSTALL -l ./ broadgap.utils_1.0.tar.gz

文件是从此处下载的:https://www.broadinstitute.org/birdsuite/birdsuite-downloads

安装说明在这里https://www.broadinstitute.org/birdsuite/birdsuite-install

我明白了:

* installing *source* package ‘broadgap.utils’ ...
 ERROR: a 'NAMESPACE' file is required

我尝试了此处提出的解决方案:

 https://stackoverflow.com/questions/17196225/error-a-namespace-file-is-required

tar -xzf broadgap.utils_1.0.tar.gz
cd broadgap.utils
echo 'exportPattern( "." )' > NAMESPACE
cd ..
tar -zcf broadgap.utils_1.0.tar.gz broadgap.utils

尝试再次使用建议的解决方案安装它后,我得到了:

* installing *source* package ‘broadgap.utils’ ...
** R
** preparing package for lazy loading
** help
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:11: unexpected TEXT ' ',expecting '{'
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:23: unexpected '}'
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:12: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:13: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:13: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:14: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:14: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:15: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:15: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:16: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:16: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:17: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:17: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:19: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:20: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:21: All text must be in a section
Warning: /tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/broad.utils-package.Rd:22: All text must be in a section
Warning: newline within quoted string at commandLineArg.Rd:29
Error in parse_Rd("/tmp/RtmpfWfEvG/R.INSTALL6da96b32b825/broadgap.utils/man/commandLineArg.Rd",: 
  Unexpected end of input (in " quoted string opened at commandLineArg.Rd:35:31)
ERROR: installing Rd objects Failed for package ‘broadgap.utils’

我的R版本是:r-3.6.3

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。