Commit fdb7f2e
committed
fix(R): detect x64 R on Windows ARM via exit codes
When x64 R crashes on Windows ARM, detect specific exit codes and provide
helpful error message instead of generic "check your R installation".
Detects two crash scenarios:
- Native ARM hardware: -1073741569 (STATUS_NOT_SUPPORTED)
- Windows ARM VM on Mac: -1073741819 (STATUS_ACCESS_VIOLATION)
Both occur when rmarkdown package loads under x64 emulation. R script
completes successfully and produces YAML before crashing during cleanup.
These error codes are unique to x64 R on ARM Windows, so checking them
directly is sufficient without needing to verify ARM hardware via Windows API.
This is the simplest possible approach: just check exit codes, no DLL calls.
Closes #8730
Related: #137901 parent b323477 commit fdb7f2e
1 file changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
118 | 141 | | |
119 | 142 | | |
120 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
121 | 148 | | |
122 | 149 | | |
123 | 150 | | |
| |||
0 commit comments