Skip to content

Commit

Permalink
Alpine linux fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 21, 2024
1 parent 2c57c25 commit 6c8b3a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/tools/build.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ if (!dir.exists("data")) {
}

.in <- suppressWarnings(readLines("src/Makevars.in"))
if (.Platform$OS.type == "windows" && !file.exists("src/Makevars.win")) {
if (.Platform$OS.type == "windows" && !file.exists("src/Makevars.win") ||
(R.version$os == "linux-musl")) {
file.out <- file("src/Makevars.win", "wb")
writeLines(.in, file.out)
close(file.out)
Expand Down

0 comments on commit 6c8b3a4

Please sign in to comment.