jonkeane commented on code in PR #37961:
URL: https://github.com/apache/arrow/pull/37961#discussion_r1357460372
##########
r/R/install-arrow.R:
##########
@@ -267,3 +268,9 @@ wslify_path <- function(path) {
end_path <- strsplit(path, drive_expr)[[1]][-1]
file.path(wslified_drive, end_path)
}
+
+on_rosetta <- function() {
+ # make sure to suppress warnings and ignore the stderr so that this is
silent where proc_translated doesn't exist
+ identical(tolower(Sys.info()[["sysname"]]), "darwin") &&
+ identical(suppressWarnings(system("sysctl -n sysctl.proc_translated",
intern = TRUE, ignore.stderr = TRUE)), "1")
+}
Review Comment:
```suggestion
}
```
To appease the linter
--
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]