Skip to content

gradethis fails to install on ARM #365

Open

Description

@H2whoaMusic

I am currently doing an MSc in statistics. As part of the course, we need to install gradethis. However, it seems to be the case that it does not install on machines with an ARM64 processor. I am running a Windows machine with an ARM64 process. Another student is running an Apple machine on an M1 processor which is also ARM.

We both have identical problems when trying to install gradethis. I have, however, successfully installed it on two x86-based machines. So by process of elimination, ARM seems to be the problem.

Does anyone have a solution for this?

Activity

  1. gadenbuie commented on Feb 5, 2025

    @gadenbuie
    Member

    Can you show the output? gradethis is a pure R package so it's unlikely there's an ARM issue, at least one that's caused by gradethis.

  2. H2whoaMusic commented on Feb 7, 2025

    @H2whoaMusic
    Author

    This is the error message that the other student with an M1 posted:

    ERROR: package installation failed STDERR: Error: Failed to install 'gradethis' from GitHub: Failed to R CMD build package, try build = FALSE. In addition: There were 37 warnings (use warnings() to see them)

    They didn't post additional details. This is the error that I got on one of my many attempts to install on my Windows Snapdragon system (I have tried every iteration of updating installed packages, this is just my last attempt. So I do not believe it has anything to do with the options selected for updating packages):

    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

  3. benediktschfr commented on Jul 6, 2025

    @benediktschfr

    Does this generally happen for remote installs from GitHub?

    You may try another GitHub install, like remotes::install_github("pedscience/clinicalsignificance")

    I always get an issue concerning lazy loading as well. Packages install just fine from CRAN but not from GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions