krlmlr / r-appveyor

Tools for using R with AppVeyor (https://appveyor.com)
132 stars 60 forks source link

Rtools not available for upstream dependencies #104

Closed wch closed 6 years ago

wch commented 6 years ago

In this build of shiny, it fails because Rtools is not installed, but that version of Shiny has some dependencies (later and httpuv) that it's getting from GitHub and require a compiler.

I see in #41 that there is a workaround, but it seems clunky. I have a feeling that this scenario is not uncommon when the Remotes: field is used in a DESCRIPTION file.

Would it be possible to add something to a repo's appveyor.yml file that tells it to install Rtools?

gaborcsardi commented 6 years ago

Maybe I am missing something, but can you add USE_RTOOLS? Example: https://github.com/r-lib/callr/blob/f68b62e46be75ed7a6040555f0e7bd028951d3d3/appveyor.yml#L49

wch commented 6 years ago

@gaborcsardi Setting USE_RTOOLS works. Thanks!