Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rtools and add registry for R #32

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Yunuuuu
Copy link

@Yunuuuu Yunuuuu commented Mar 10, 2025

Thanks for the scoop bucket repo.

This commit should resolve #30, Note that the same issue reported in Positron also exists in RStudio.

Additionally, this commit adds support for Rtools 40–44 for R versions > 4.0.0.

  • From R 4.2.0 onward, R inspects the environment variable RTOOLS42_HOME.
  • From R 4.3.0, it inspects RTOOLS43_HOME.
  • From R 4.4.0, it inspects RTOOLS44_HOME.

As a result, rtools42, rtools43, and rtools44 now set their respective environment variables.

For R versions ≥ 4.0.0 and < 4.2.0, r-release will create Renviron.site and add: PATH="${RTOOLS40_HOME-C:/rtools40}/usr/bin;${PATH}". This follows the same approach as R ≥ 4.2.0. So rtools40 also sets RTOOLS40_HOME.

My original R manifest was based on yours (should be R version 3.5), and I’ve maintained my own Scoop bucket repo at https://github.com/Yunuuuu/jade. I have used these configurations on multiple computers in my labs and for my senior and junior labmates (from R 3.5 to the latest version), and they have worked well.

I hope these improvements enhance the official R bucket repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Positron doesn't automatically pick up a scoop-installed R
1 participant