We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 389b835 commit 19a2e67Copy full SHA for 19a2e67
tools/config.R
@@ -91,7 +91,7 @@ configure_file <- function(
91
92
# write configured file to target location
93
# prefer unix newlines for Makevars
94
- mode <- if (target %in% "Makevars") "wb" else "w"
+ mode <- if (basename(target) %in% "Makevars") "wb" else "w"
95
conn <- file(target, open = mode)
96
on.exit(close(conn), add = TRUE)
97
writeLines(contents, con = conn)
0 commit comments