我想用R演播室在R中构建一个包
我在build source package上按下这个错误
==> R CMD build CLASS_Projectcompany
* checking for file 'CLASS_Projectcompany/DESCRIPTION' ... OK
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_TIME failed, using "C"
3: Setting LC_MESSAGES failed, using "C"
4: Setting LC_MONETARY failed, using "C"
* preparing 'CLASS_Projectcompany':
* checking DESCRIPTION meta-information ... ERROR
Malformed package name
See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.DESCRIPTION文件的内容是:
Package: CLASS_Projectcompany
Type: Package
Title: Class Projectcompany
Version: 1.0
Date: 2015-05-23
Author: Marco Deneenii [aut, cre]
Maintainer: Marco Deneenii <something@gmail.com>
Description: Class Project Company.
License: GPL-2你能帮忙吗?
更新
在从包条目中删除_之后,我得到了以下错误:
==> R CMD INSTALL --build --preclean ClassProjectcompany
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_TIME failed, using "C"
3: Setting LC_MESSAGES failed, using "C"
4: Setting LC_MONETARY failed, using "C"
* installing to library '/Library/Frameworks/R.framework/Versions/3.2/Resources/library'
* installing *source* package 'ClassProjectcompany' ...
** R
** preparing package for lazy loading
Warning in file(file, "rt") :
cannot open file '��.S�': No such file or directory
Error in file(file, "rt") : cannot open the connection
Error : unable to load R code in package 'ClassProjectcompany'
ERROR: lazy loading failed for package 'ClassProjectcompany'
* removing '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ClassProjectcompany'
Exited with status 1.发布于 2015-05-23 17:28:44
它毫不含糊地告诉你
格式错误的包名
所以我先从这句话开始
Package: CLASS_Projectcompany实际上检查是否允许下划线。他们可能不是。
https://stackoverflow.com/questions/30415593
复制相似问题