Skip to content

Commit

Permalink
Make 64bits R version check compatible with arm architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixmil committed Jan 8, 2025
1 parent af8ae73 commit 49c414e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
return()
}

# Now verify that the package is running on R 64
isR64 <- R.version$arch == "x86_64"
if (!isR64) {
stop("64 bit version of R is required.")
# Check that the package is support by the user architecture
supportedArchitecture <- R.version$arch %in% c("x86_64", "aarch64")
if (!supportedArchitecture) {
stop("The processor architecture you are using is not supported by this
package. (only x86_64 and aarch64 are supported)")
}

.initPackage()
Expand Down

0 comments on commit 49c414e

Please sign in to comment.