Skip to content

Commit

Permalink
Support RTOOLS44 (#347)
Browse files Browse the repository at this point in the history
* Support RTOOLS44

* Update NEWS
  • Loading branch information
Ilia-Kosenkov authored Mar 30, 2024
1 parent a325448 commit e5072fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* `use_extendr()` correctly handles calls with `path` not equal to `"."` (current folder), or when there is no active `{usethis}` project (#323).
* Fixes an issue in pre-defined set of known features: added `either` (#338)
* `create_extendr_package()` allows user to create project directory using RStudio's **Project Command**. (#321)
* Support `RTOOLS44` (#347)

# rextend 0.3.1

Expand Down
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)

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

0 comments on commit e5072fc

Please sign in to comment.