Skip to content

Commit 7a1ccf6

Browse files
committed
Add strip level for R 4.3 Intel build (3 now, not 2)
1 parent a0b8431 commit 7a1ccf6

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

R/installers.R

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ install_strip_level = function(arch = system_arch()) {
1313
)
1414
}
1515

16+
recipe_binary_install_strip_level = function(arch = system_arch()) {
17+
if (is_r_version("4.3")) {
18+
switch(
19+
arch,
20+
"arm64" = 3,
21+
"aarch64" = 3,
22+
"x86_64" = 3,
23+
stop("`arch` type not recognized. Please make sure you are on either an `arm64` or `x86_64` system.")
24+
)
25+
} else if (is_r_version("4.0") | is_r_version("4.1") | is_r_version("4.2")) {
26+
install_strip_level()
27+
} else {
28+
stop("We do not yet support recipe binary installation for the current version of R.")
29+
}
30+
}
31+
1632
install_location = function(arch = system_arch()) {
1733

1834
switch(

R/recipes.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ recipes_binary_install = function(
188188
# Determine the correct installation path based on arch type
189189
supplied_arch = strsplit(os.arch, "/")[[1]][2]
190190
installation_directory = recipe_binary_install_location(supplied_arch)
191-
installation_strip_level = install_strip_level(supplied_arch)
191+
installation_strip_level = recipe_binary_install_strip_level(supplied_arch)
192192

193193
# Ensure the installation location is valid.
194194
create_install_location(arch = supplied_arch, password = entered_recipes_password)

0 commit comments

Comments
 (0)