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


##########
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:
   This is more verbose than many of our messages (and I'm happy for some 
streamlining), but my reasoning for being _so_ explicit is that if someone 
finds themselves in this situation, they might not even realized what is going 
on with architectures, versions, emulation etc. So I wanted to give people more 
details to be able to get to a good state (native R + native arrow)



-- 
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