Skip to content
Abel Vertesy edited this page Feb 2, 2024 · 3 revisions

1. Q: What to do if (the latest version of the) package fails to install?

A: Install the package from a earlier states, referring to a specific commit. Previous versions might not have the same issues as the latest. Here's how to proceed:

  1. Please raise an issue with the error message. Bc it may take time until I can fix it:

  2. Find Commit IDs: Visit the package's GitHub repository and go to the "Commits" section (mid-top-right commits button). Here, you'll see a list of all the changes made to the package, each with its unique commit ID.

  3. Install from a Specific Commit: Use the devtools package to install the version of the package from the commit you've chosen. For example:

    devtools::install_github("username/repository@commitID", upgrade = "never")

    Replace username/repository with the GitHub path to the package, and commitID with the actual commit ID you found.

  4. Go Back One by a few commits: If the package still doesn't work, try installing from the previous commit by going back through the commit history one by one until you find a version that installs successfully.

This method allows you to bypass temporary issues in the latest package version by leveraging stable states from the package's history. Remember, using older versions might miss out on newer features or bug fixes, so consider this a temporary solution until the installation issues with the latest version are resolved.