posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.82k stars 90 forks source link

Consider adding features around RTools for Windows integrated terminals #5358

Open juliasilge opened 1 week ago

juliasilge commented 1 week ago

RStudio does a lot of careful work to provide and use RTools on Windows, but Positron doesn't have any of that currently. This means, for example, that make is probably not available by default as outlined in https://github.com/posit-dev/positron/discussions/5326. This applies mostly to R package developers working on Windows.

For now, folks are on their own when it comes to RTools but let's consider adding features (like finding and/or prompting to install RTools) for a better Windows experience.

[!TIP] As a workaround for folks in the meantime, see the official guidance on installing RTools and putting it on the path.

DavisVaughan commented 1 week ago

I would encourage people to use rig. It does all the hard work for you https://github.com/r-lib/rig/blob/532d6e5d330a4b900cc26ff99be5559815b5a211/src/help-windows.in#L258

TLDR:

rig system rtools add
petetronic commented 3 days ago

We can start by documenting guidance in the official Positron docs, and in the future look into better detection + fixing the issue.

juliasilge commented 1 day ago

The documentation is now updated at: https://positron.posit.co/start.html#windows-prerequisites

In the future, we can explore how to detect and fix Rtools setup.