assignUser commented on code in PR #37961:
URL: https://github.com/apache/arrow/pull/37961#discussion_r1347650593


##########
r/R/install-arrow.R:
##########
@@ -79,7 +80,8 @@ install_arrow <- function(nightly = FALSE,
     # On the M1, we can't use the usual autobrew, which pulls Intel 
dependencies
     apple_m1 <- grepl("arm-apple|aarch64.*darwin", R.Version()$platform)
     # On Rosetta, we have to build without JEMALLOC, so we also can't autobrew
-    if (on_rosetta()) {
+    rosetta <- identical(sysname, "darwin") && identical(system("sysctl -n 
sysctl.proc_translated", intern = TRUE), "1")
+    if (rosetta) {

Review Comment:
   I don't see the standalone use being suggested, maybe we need to clarify the 
docs? As I understand it `install_arrow` is for use when you have the arrow 
package installed but want to do one of the following:
   ```
   You have arrow installed and want to upgrade to a different version
   You want to try to reinstall and fix issues with Linux C++ binaries
   You want to install a development build
   ```
   @thisisnic please correct me if my assessment on that is wrong?



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