Skip to content

Commit

Permalink
Add strip level for R 4.3 Intel build (3 now, not 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed May 28, 2023
1 parent a0b8431 commit 7a1ccf6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions R/installers.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ install_strip_level = function(arch = system_arch()) {
)
}

recipe_binary_install_strip_level = function(arch = system_arch()) {
if (is_r_version("4.3")) {
switch(
arch,
"arm64" = 3,
"aarch64" = 3,
"x86_64" = 3,
stop("`arch` type not recognized. Please make sure you are on either an `arm64` or `x86_64` system.")
)
} else if (is_r_version("4.0") | is_r_version("4.1") | is_r_version("4.2")) {
install_strip_level()
} else {
stop("We do not yet support recipe binary installation for the current version of R.")
}
}

install_location = function(arch = system_arch()) {

switch(
Expand Down
2 changes: 1 addition & 1 deletion R/recipes.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ recipes_binary_install = function(
# Determine the correct installation path based on arch type
supplied_arch = strsplit(os.arch, "/")[[1]][2]
installation_directory = recipe_binary_install_location(supplied_arch)
installation_strip_level = install_strip_level(supplied_arch)
installation_strip_level = recipe_binary_install_strip_level(supplied_arch)

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

0 comments on commit 7a1ccf6

Please sign in to comment.