【问题标题】:Error in DESCRIPTION meta-information描述元信息中的错误
【发布时间】: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' 后面不用回车
  • 感谢您的回复。我将描述放在一行中,但错误仍然存​​在。我得到的输出完全一样。

标签: r r-package


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    根据编写R扩展手册https://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-DESCRIPTION-file,你应该避免提及你的包的名字,甚至是包这个词。您可以尝试在描述的开头不使用This package。它应该可以为您解决问题,因为我没有看到任何其他问题。

    【讨论】:

    • 我按照您的建议进行了更正,但问题仍然存在。
    • jroberayalas 你能提供你的新描述和你得到的错误
    • 这些错误信息可能与您的描述文件无关,可能与您的系统有关。从 stackoverflow 中查看这个问题stackoverflow.com/questions/9689104/…
    • 非常感谢,DKangeyan。这似乎是 R 软件和 LOCALE 功能的问题。我按照你建议的链接,然后这个链接:cran.r-project.org/bin/macosx/…,解决了这个问题。我不是这方面的专家,这需要一段时间,但我非常感谢您的帮助!
    猜你喜欢
    • 1970-01-01
    • 2022-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-11
    • 2021-07-12
    • 1970-01-01
    • 2011-12-24
    相关资源
    最近更新 更多