R:检查描述元信息错误
R: checking DESCRIPTION meta-information ERROR
这是我的问题。我正在尝试在 CRAN 中提交包裹。当我 运行 控制台中的命令
R CMD check MYPACKAGE
但我收到下一条日志,主要错误是说明元信息:
* using log directory ‘/Users/Userx/Desktop/MYPACKAGE.Rcheck’
* using R version 3.3.0 (2016-05-03)
* using platform: x86_64-apple-darwin13.4.0 (64-bit)
* using session charset: UTF-8
* checking for file ‘MYPACKAGE/DESCRIPTION’ ... OK
* this is package ‘MYPACKAGE’ version ‘0.1.0’
* 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 ‘MYPACKAGE’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... NOTE
Checking should be performed on sources prepared by ‘R CMD build’.
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking examples ... OK
* checking PDF version of manual ... OK
* DONE
Status: 1 NOTE
See
‘/Users/piahuerta/Desktop/IMPACT.Rcheck/00check.log’
for details.
您知道它是如何修复的吗?这是我的描述文件
Package: MYPACKAGE
Version: 0.1.0
Date: 2016-06-12
Title: This is my MyPaCKAGE
Authors@R: c(person("John Lenon","Developer",role=c("aut","cre"),email="johnlenon@johnlenon.mx"))
Author: John Lenon [aut,cre]
Maintainer: John Lenon <johnlenon@johnlenon.mx>
Depends: R(>= 3.1.0)
Description: This is my package that I want to submit to CRAN.
License: GPL (>= 2)
Encoding: UTF-8
NeedsCompilation: no
RoxygenNote: 5.0.1
你做的有点不对。而不是
R CMD check MYPACKAGE
宁愿做
R CMD build MYPACKAGE # creates tarball
R CMR check MYPACKAGE_0.1.0.tar.gz # tests via tarball
您可能还想检查是否设置了环境变量 LC_ALL 和 LANG,如有疑问请参阅 Installing R on Mac - Warning messages: Setting LC_CTYPE failed, using "C"。
这是我的问题。我正在尝试在 CRAN 中提交包裹。当我 运行 控制台中的命令
R CMD check MYPACKAGE
但我收到下一条日志,主要错误是说明元信息:
* using log directory ‘/Users/Userx/Desktop/MYPACKAGE.Rcheck’
* using R version 3.3.0 (2016-05-03)
* using platform: x86_64-apple-darwin13.4.0 (64-bit)
* using session charset: UTF-8
* checking for file ‘MYPACKAGE/DESCRIPTION’ ... OK
* this is package ‘MYPACKAGE’ version ‘0.1.0’
* 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 ‘MYPACKAGE’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... NOTE
Checking should be performed on sources prepared by ‘R CMD build’.
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking examples ... OK
* checking PDF version of manual ... OK
* DONE
Status: 1 NOTE
See
‘/Users/piahuerta/Desktop/IMPACT.Rcheck/00check.log’
for details.
您知道它是如何修复的吗?这是我的描述文件
Package: MYPACKAGE
Version: 0.1.0
Date: 2016-06-12
Title: This is my MyPaCKAGE
Authors@R: c(person("John Lenon","Developer",role=c("aut","cre"),email="johnlenon@johnlenon.mx"))
Author: John Lenon [aut,cre]
Maintainer: John Lenon <johnlenon@johnlenon.mx>
Depends: R(>= 3.1.0)
Description: This is my package that I want to submit to CRAN.
License: GPL (>= 2)
Encoding: UTF-8
NeedsCompilation: no
RoxygenNote: 5.0.1
你做的有点不对。而不是
R CMD check MYPACKAGE
宁愿做
R CMD build MYPACKAGE # creates tarball
R CMR check MYPACKAGE_0.1.0.tar.gz # tests via tarball
您可能还想检查是否设置了环境变量 LC_ALL 和 LANG,如有疑问请参阅 Installing R on Mac - Warning messages: Setting LC_CTYPE failed, using "C"。