CRAN提交-R CMD检查警告-使用编译标志

CRAN提交-R CMD检查警告-使用编译标志,r,r-package,cran,R,R Package,Cran,我正试图将我的第一个包提交到CRAN,在我的机器上,我在运行R CMD check(通过RStudio)时收到以下警告 在Rwinbuilder上构建包时,我没有收到此警告。我确实从win builder服务中收到了注释,但我认为这是因为这是第一次提交,并且有CRAN无法识别的拼写,即 * checking CRAN incoming feasibility ... NOTE New submission Possibly mis-spelled words in DESCRIPTION:

我正试图将我的第一个包提交到
CRAN
,在我的机器上,我在运行
R CMD check
(通过
RStudio
)时收到以下警告

R
winbuilder上构建包时,我没有收到此警告。我确实从win builder服务中收到了
注释
,但我认为这是因为这是第一次提交,并且有
CRAN
无法识别的拼写,即

* checking CRAN incoming feasibility ... NOTE

New submission

Possibly mis-spelled words in DESCRIPTION:
  CVODE (8:167)
  CVODES (8:219)
  Livermore (8:108)
我不太担心第一次提交和拼写错误的单词注释,因为我可以在注释(以及
cran comments.md
文件)中解释它们。但是有没有办法删除我在系统上收到的警告(
macOS
R=3.5.0
)。该软件包建立在
travis ci
appveyor
的基础上

另外,包是否准备好提交1警告,我知道哈德利的书中提到,我们必须尝试在提交前删除所有错误、警告和注释

我刚刚了解到关于
r-hub
,该软件包在其上构建得很好

Build ID:   sundialr_0.1.0.tar.gz-aa50507b5a2a8b57b091643fa3e7aae2
Platform:   Debian Linux, R-devel, GCC
Submitted:  3 minutes 36.3 seconds ago
Build time: 3 minutes 32.1 seconds
可以找到包代码


我们将非常感谢您的帮助

2019年5月更新:在Debian软件包中,这些配置更改对于最新的软件包来说是不必要的

AFAIK Debian将这些标志用作每次编译的默认标志。R会记住使用过的标志。您可以在
~/.R/Makevars
中进行调整,例如:

# Settings from /etc/R/Makeconf with "non-portable flag(s):"
# ‘-Wdate-time’ ‘-Werror=format-security’ ‘-Wformat’ replaced by -Wall -pedantic
# and without -fdebug-prefix-map=... 
CFLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(LTO)
CXXFLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(LTO)
CXX98FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2
CXX11FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2
CXX14FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2

非英语单词或其他软件包和外部软件的名称应使用单引号。注意:如果您不确定Makevars文件的本地化,可以使用:
usethis::edit\u r\u Makevars()
# Settings from /etc/R/Makeconf with "non-portable flag(s):"
# ‘-Wdate-time’ ‘-Werror=format-security’ ‘-Wformat’ replaced by -Wall -pedantic
# and without -fdebug-prefix-map=... 
CFLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(LTO)
CXXFLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(LTO)
CXX98FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2
CXX11FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2
CXX14FLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2