【发布时间】:2016-05-29 21:01:38
【问题描述】:
我是 R 包开发的新手,我不确定这是否是常见错误。我正在开发一个可以在 GitHub 上找到的新包:https://github.com/jroberayalas/ahnr。我在装有 OS X Yosemite [平台:x86_64-apple-darwin13.4.0 (64-bit)] 的 Mac 上使用 R 版本 3.3.0 (2016-05-03)。
当我检查包时,我收到 1 个描述元信息的错误。它没有提供任何有意义的细节,我不确定这是什么意思。
下面是我按下 CMD+Shift+E 时得到的输出。我觉得奇怪的是,我认为包裹被检查了两次:第一次是checking DESCRIPTION meta-information ... OK,第二次是checking DESCRIPTION meta-information ... ERROR。我不知道这是否是它应该工作的方式。我必须补充一点,GitHub 存储库存储在我的 Google Drive 文件夹中以便存储在云端,所以我不确定这是否会导致错误。
During the initialization - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_COLLATE failed, using "C"
3: Setting LC_TIME failed, using "C"
4: Setting LC_MESSAGES failed, using "C"
5: Setting LC_MONETARY failed, using "C"
Updating ahnr documentation
Loading ahnr
Setting env vars ---------------------------------------------------------------
CFLAGS : -Wall -pedantic
CXXFLAGS: -Wall -pedantic
Building ahnr ------------------------------------------------------------------
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ \
--no-save --no-restore --quiet CMD build '/R/ahnr' --no-resave-data --no-manual
During the initialization - 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"
* checking for file '/R/ahnr/DESCRIPTION' ... OK
* preparing 'ahnr':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building 'ahnr_0.0.0.9000.tar.gz'
Setting env vars ---------------------------------------------------------------
_R_CHECK_CRAN_INCOMING_ : FALSE
_R_CHECK_FORCE_SUGGESTS_: FALSE
Checking ahnr ------------------------------------------------------------------
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ \
--no-save --no-restore --quiet CMD check \
'/var/folders/d0/h1123zw10cl569yx765cpxp00000gn/T//RtmpvxgS8q/ahnr_0.0.0.9000.tar.gz' \
--as-cran --timings --no-manual
During the initialization - 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"
* using log directory '/R/ahnr.Rcheck'
* using R version 3.3.0 (2016-05-03)
* using platform: x86_64-apple-darwin13.4.0 (64-bit)
* using session charset: ASCII
* using options '--no-manual --as-cran'
* checking for file 'ahnr/DESCRIPTION' ... OK
* this is package 'ahnr' version '0.0.0.9000'
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package 'ahnr' can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... ERROR
During the initialization - 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"
* DONE
Status: 1 ERROR
checking DESCRIPTION meta-information ... ERROR
During the initialization - 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"
See
'/R/ahnr.Rcheck/00check.log'
for details.
R CMD check results
1 error | 0 warnings | 0 notes
R CMD check succeeded
我的DESCRIPTION文件很简单:
Package: ahnr
Title: R implementation of the Artificial Hydrocarbon Networks
Version: 0.0.0.9000
Authors@R: person("Jose", "Ayala", email = "#####@##.#", role = c("aut", "cre"))
Description: This packages implements the algorithm to create artificial hydrocarbon
networks for data modelling.
Depends:
R (>= 3.3.0)
License: GPL-3 | file LICENSE
Encoding: UTF-8
LazyData: true
Imports:
matrixcalc,
pracma
Suggests:
testthat
RoxygenNote: 5.0.1
URL: https://github.com/jroberayalas/ahnr
BugReports: https://github.com/jroberayalas/ahnr/issues
非常感谢任何帮助!
【问题讨论】:
-
我以前见过
Decription:位于两行的问题。试试在 'hydrocarbon' 后面不用回车 -
感谢您的回复。我将描述放在一行中,但错误仍然存在。我得到的输出完全一样。