nealrichardson commented on code in PR #37777:
URL: https://github.com/apache/arrow/pull/37777#discussion_r1329018154


##########
r/R/arrow-package.R:
##########
@@ -196,6 +196,20 @@ configure_tzdb <- function() {
         )
       )
     }
+
+    # On MacOS only, Check if we are running in under emulation, and warn this 
will not work
+    rosetta <- identical(sysname, "darwin") && identical(system("sysctl -n 
sysctl.proc_translated", intern = TRUE), "1")
+    if (rosetta) {
+      packageStartupMessage(
+        paste(
+          "It appears that you are running R and Arrow in emulation",
+          "(typically, this is running an x86 build of R on an ARM or",
+          "M processor based mac). This configuration is not supported",
+          "by arrow and we highly recommend you install a native (arm64)",
+          "build of R and use arrow with that."

Review Comment:
   I might explicitly link to https://cran.r-project.org/bin/macosx/ and say 
install the arm64 version. And I (personally) would be a bit more direct: 
you're running R built for Intel on a non-Intel mac, and arrow won't work in 
that context; to fix, install the arm64 version of R from CRAN and then 
reinstall R.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to