File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff 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+
1632install_location = function (arch = system_arch()) {
1733
1834 switch (
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments