Reputation: 1
I'm in the early stages of an MSc in Medical Statistics so I am brand new to R. On my personal laptop, I am having trouble installing gradethis using either the base R (4.4.2) or in RStudio (2024.12.0 build 467)
I have managed to install it fine on my work laptop, but having no joy with my personal laptop. Potentially important information is that my personal laptop is running on an ARM64 processor, and I'm starting to wonder if this is the problem.
This is the log when I try to install gradethis. Any help appreciated:
> 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
I have tried fully uninstalling R and RStudio. I even created a new admin account as the original USER folder for app data was being displayed with a ~ in the string so I wondered if that was causing the issue.
I have also tried downloading the compressed gradethis directly from github after installing Rtools, but for some reason RStudio is not seeing that I have installed Rtools installed (I did not change the default installation location).
Given all this, I'm starting to think that I've fallen into a trap by having an ARM64 processor. Am I correct in this assumption or is there anything I can do?
Upvotes: 0
Views: 43