Skip to content

Commit

Permalink
Support RTOOLS44
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia-Kosenkov committed Mar 30, 2024
1 parent a325448 commit 790014d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/source.R
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,11 @@ invoke_cargo <- function(toolchain, specific_target, dir, profile,
cli::cli_abort("rextendr currently supports R 4.x", class = "rextendr_error")
}

if (package_version(R.version$minor) >= "3.0") {
minor_patch <- package_version(R.version$minor)

Check warning on line 317 in R/source.R

View check run for this annotation

Codecov / codecov/patch

R/source.R#L317

Added line #L317 was not covered by tests

if (minor_patch >= "4.0") {
rtools_version <- "44" # nolint: object_usage_linter
} else if (minor_patch >= "3.0") {

Check warning on line 321 in R/source.R

View check run for this annotation

Codecov / codecov/patch

R/source.R#L319-L321

Added lines #L319 - L321 were not covered by tests
rtools_version <- "43" # nolint: object_usage_linter
} else {
rtools_version <- "42" # nolint: object_usage_linter
Expand Down

0 comments on commit 790014d

Please sign in to comment.