Skip to content

Commit 3268980

Browse files
committed
improved when-not-on-windows logic (thanks, @coatless)
1 parent 4b86c1b commit 3268980

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

R/Attributes.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@ sourceCpp <- function(file = "",
6565
"is not permitted.")
6666
}
6767
} else {
68-
if (verbose && windowsDebugDLL) {
69-
message("The 'windowsDebugDLL' toggle is ignored on non-Windows platforms.")
68+
if (windowsDebugDLL) {
69+
if (verbose) {
70+
message("The 'windowsDebugDLL' toggle is ignored on "
71+
"non-Windows platforms.")
72+
}
7073
windowsDebugDLL <- FALSE # now we do not need to deal with OS choice below
7174
} # #nocov end
7275
}

0 commit comments

Comments
 (0)