You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ARM64设备安装GitHub的gradethis R包失败求助

ARM64架构笔记本安装R包gradethis失败求助

我是医学统计学硕士新生,刚接触R语言。在搭载ARM64处理器的个人Windows笔记本上,使用基础R(4.4.2)或RStudio(2024.12.0 build 467)均无法安装gradethis包,但非ARM64架构的工作笔记本安装正常,怀疑是ARM64处理器导致问题。

已尝试的操作:

  • 完全卸载并重装R和RStudio
  • 创建新管理员账户进行安装
  • 安装Rtools后手动下载gradethis压缩包,但RStudio无法识别Rtools

以下是安装日志:

> remotes::install_github("rstudio/gradethis")
Downloading GitHub repo rstudio/gradethis@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                                     
2: CRAN packages only                      
3: None                                    
4: learnr (0.11.5 -> a644d2dd4...) [GitHub]
5: rlang  (1.1.4  -> 1.1.5       ) [CRAN]  

Enter one or more numbers, or an empty line to skip updates: 5
rlang (1.1.4 -> 1.1.5) [CRAN]
Installing 1 packages: rlang

  There is a binary version available but the source version is later:
      binary source needs_compilation
rlang  1.1.4  1.1.5              TRUE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/rlang_1.1.4.zip'
Content type 'application/zip' length 1632687 bytes (1.6 MB)
downloaded 1.6 MB

package ‘rlang’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\USER\AppData\Local\Temp\RtmpOOB7Vl\downloaded_packages
── R CMD build ─────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\USER\AppData\Local\Temp\RtmpOOB7Vl\remotesd3c7d5eda6\rstudio-gradethis-502af70/DESCRIPTION' ...
─  preparing 'gradethis': (1.9s)
✔  checking DESCRIPTION meta-information ...
─  installing the package to process help pages
         -----------------------------------
─  installing *source* package 'gradethis' ...
   ** using staged installation
   ** R
   ** inst
   ** byte-compile and prepare package for lazy loading
   ERROR: lazy loading failed for package 'gradethis'
─  removing 'C:/Users/USER/AppData/Local/Temp/RtmpoHKaXJ/Rinst378c4443c29/gradethis'
         -----------------------------------
   ERROR: package installation failed
Error: Failed to install 'gradethis' from GitHub:
  ! System command 'Rcmd.exe' failed

请问:

  • 该问题是否确实由ARM64处理器导致?
  • 还有哪些可行的解决办法?

内容的提问来源于stack exchange,提问作者nonparametric

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 19:32:11