我想使用R studio
在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.
答案 0 :(得分:2)
它毫不含糊地告诉你
格式错误的软件包名称
所以我将从
行开始 Package: CLASS_Projectcompany
并实际检查是否允许下划线。他们可能不是。