Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f3bf08

Browse files
committed
don't print init.c message if attributes=TRUE
1 parentce023b8 commit3f3bf08

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

‎R/Rcpp.package.skeleton.R‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,15 @@ Rcpp.package.skeleton <- function(name = "anRpackage", list = character(),
187187

188188
# generate native routines if we aren't using attributes (which already generate
189189
# them automatically) and we have at least R 3.4
190-
if (!attributes&& getRversion()>="3.4.0") {
191-
con<- file(file.path(src,"init.c"),"wt")
192-
tools::package_native_routine_registration_skeleton(root,con=con)
193-
close(con)
194-
message(" >> created init.c for package registration")
195-
}else {
196-
message(" >> R version older than 3.4.0 detected, so NO file init.c created.")
190+
if (!attributes) {
191+
if (getRversion()>="3.4.0") {
192+
con<- file(file.path(src,"init.c"),"wt")
193+
tools::package_native_routine_registration_skeleton(root,con=con)
194+
close(con)
195+
message(" >> created init.c for package registration")
196+
}else {
197+
message(" >> R version older than 3.4.0 detected, so NO file init.c created.")
198+
}
197199
}
198200

199201
lines<- readLines(package.doc<- file.path(root,"man", sprintf("%s-package.Rd",name)))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp