r - 如何解决:错误:需要“命名空间”文件
问题描述
我正在尝试在 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
解决方案
推荐阅读
- php - Logic error with Datetime->modify in Symfony entity
- php - Finding duplicates and appending arrays to an array with millions of arrays
- angular - Angular: Multiple nested FormGroups in Component
- oracle - PL/SQL如何调用这个函数
- python - 两个连接的两个数据框如何只有一个相同的列
- json - 如何使用超链接 C# 从复杂的 json 中获取价值
- swift - Firestore 数据库 - 文档未在集合中返回
- java - 如何从 URL 下载未知文件名?
- google-oauth - Google OAuth 响应查询字符串可以包含未编码的字符吗?
- identityserver4 - 在 ajax 请求上收到 400 错误。与当前用户不同的基于声明的用户的防伪令牌