gpt4 book ai didi

r - DESCRIPTION 元信息错误

转载 作者:行者123 更新时间:2023-12-04 17:59:15 28 4
gpt4 key购买 nike

我是 R 包开发的新手,我不确定这是否是一个常见错误。我正在开发 GitHub 上可用的新包:https://github.com/jroberayalas/ahnr .我在装有 OS X Yosemite [平台:x86_64-apple-darwin13.4.0(64 位)] 的 Mac 上使用 R 版本 3.3.0 (2016-05-03)。

当我检查包时,我收到 1 个关于 DESCRIPTION 元信息的错误。它没有提供任何有意义的细节,我不确定这是什么意思。

下面是我按 CMD+Shift+E 时得到的输出。我觉得奇怪的是,我认为这个包被检查了两次:第一次它说 checking DESCRIPTION meta-information ... OK,第二次它说 checking DESCRIPTION meta-information ... 错误。我不知道这是否是它应该的工作方式。我必须补充一点,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

非常感谢任何帮助!

最佳答案

感谢@DKangeyan,问题似乎与 R 中的 LOCALE 功能有关。我按照说明进行操作 herehere , 问题就解决了。

关于r - DESCRIPTION 元信息错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37514957/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com