Skip to content

Instantly share code, notes, and snippets.

@cderv
Created March 3, 2019 12:01
Show Gist options
  • Save cderv/8d4e486e3ad7da7f55256f458a9a57c4 to your computer and use it in GitHub Desktop.
Save cderv/8d4e486e3ad7da7f55256f458a9a57c4 to your computer and use it in GitHub Desktop.
setup R build tools

To compile R Source on windows

  • BINPREF must be set to C:/Rtools/mingw_$(WIN)/bin/ (/ are important)
  • Rtools must be on the path: C:\\Rtools\\bin\\; (/ less important)

This will make installation ok no matter the 📦 (like remotes)

What to know about RStudio

install.packages in rstudio is not directly utils::install.packages(). There is some things set after some verification. Like setting BINPREF. So installation will work without anything set in RStudio, but it won't work with remotes::install_cran for example.

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