CRAN 提交 - R CMD 检查警告 - 使用编译标志
CRAN submission - R CMD Check warning - compilation flags used
我正在尝试将我的第一个包裹提交到 CRAN
,在我的机器上,我在 运行 R CMD check
上收到以下警告(通过 RStudio
)
checking compilation flags used ... WARNING
Compilation used the following non-portable flag(s):
‘-Wno-unused-function’ ‘-Wno-unused-variable’
including flag(s) suppressing warnings
R CMD check results
0 errors | 1 warning | 0 notes
R CMD check succeeded
我在 R
win-builder 上构建我的包时没有收到此警告。我确实从 win-builder 服务中得到了一个 NOTE
,但我认为这是因为这是第一次提交,并且存在 CRAN
无法识别的拼写,即 [=26] =]
* 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 个警告的包,我知道 Hadley 的书提到我们必须在提交前尝试删除所有错误、警告和注释。
我刚刚发现 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
包码可以找到here
任何帮助将不胜感激!!
2019 年 5 月更新:Debian 软件包中的 Recent changes 使最新软件包不需要进行这些配置更改。
据我所知,这些标志被 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
我正在尝试将我的第一个包裹提交到 CRAN
,在我的机器上,我在 运行 R CMD check
上收到以下警告(通过 RStudio
)
checking compilation flags used ... WARNING
Compilation used the following non-portable flag(s):
‘-Wno-unused-function’ ‘-Wno-unused-variable’
including flag(s) suppressing warnings
R CMD check results
0 errors | 1 warning | 0 notes
R CMD check succeeded
我在 R
win-builder 上构建我的包时没有收到此警告。我确实从 win-builder 服务中得到了一个 NOTE
,但我认为这是因为这是第一次提交,并且存在 CRAN
无法识别的拼写,即 [=26] =]
* 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 个警告的包,我知道 Hadley 的书提到我们必须在提交前尝试删除所有错误、警告和注释。
我刚刚发现 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
包码可以找到here
任何帮助将不胜感激!!
2019 年 5 月更新:Debian 软件包中的 Recent changes 使最新软件包不需要进行这些配置更改。
据我所知,这些标志被 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