We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63775ae commit d4a0ddaCopy full SHA for d4a0dda
1 file changed
R/model.R
@@ -580,6 +580,18 @@ compile <- function(quiet = TRUE,
580
call. = FALSE
581
)
582
}
583
+ if (os_is_macos()) {
584
+ if (R.version$arch == "aarch64"
585
+ && grepl("but the current translation unit is being compiled for target", x)) {
586
+ warning(
587
+ "The C++ compiler has errored due to incompatibility between the x86 and ",
588
+ "Apple Silicon architectures.\n",
589
+ "If you are running R inside an IDE (RStudio, VSCode, ...), "
590
+ "make sure the IDE is a native Apple Silicon app.\n",
591
+ call. = FALSE
592
+ )
593
+ }
594
595
},
596
error_on_status = FALSE
597
0 commit comments