首页 > 解决方案 > 如何解决:错误:需要“命名空间”文件

问题描述

我正在尝试在 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

标签: rnamespaces

解决方案


推荐阅读