R support?

Scott Chamberlain's Avatar

Scott Chamberlain

28 Feb, 2014 03:44 PM

Searching around the Appveyor site and google, I haven't seen any examples of building R libraries. Is there R language support? If not, any plans to do so? If it helps, here is a project bring support to Travis-CI for R https://github.com/craigcitro/r-travis - but of course there is no Windows build support on Travis :(

Thanks! Scott

  1. Support Staff 1 Posted by Feodor Fitsner on 28 Feb, 2014 05:56 PM

    Feodor Fitsner's Avatar

    Hi Scott,

    Is it this one: http://cran.rstudio.com/?

    What else should be installed besides the main package?
    Do you have any sample app/project to test the installation?

  2. 2 Posted by Scott Chamberla... on 28 Feb, 2014 06:22 PM

    Scott Chamberlain's Avatar

    Hi. Yes, that is where you get R. I was testing with this R library on Github https://github.com/ropensci/rnoaa on Appveyor, but no luck yet. I put a appveyor.yml file in the repo in the root dir. I copied text from another project on Github as I wasn't sure what exactly to put in the appveyor.yml file. This particular R library required GDAL (http://www.gdal.org/), so it will likely error on testing without that, but would still be good to see if we can get it building at all.

    Unfortunately, I don't know much about Windows. I wonder if all you need is the R exe?

    Thanks! Scott

  3. Support Staff 3 Posted by Feodor Fitsner on 28 Feb, 2014 06:35 PM

    Feodor Fitsner's Avatar

    OK, thanks! I will look into it to see if this could be easily installed on build servers.

  4. 4 Posted by Scott Chamberla... on 28 Feb, 2014 08:56 PM

    Scott Chamberlain's Avatar

    There's another repo you could try: https://github.com/ropensci/alm Which doesn't rely on GDAL, should work more easily. I added a yaml file in that repo too.

    In addition, the builds probably need to install dependencies on the library being built. For example, this travis yaml file gives instructions to travis to install dependencies, which takes the code from the r-travis repo here

    The instructions for checking/testing proper installation of an R package in the r-travis library are here, basically requires R CMD BUILD <libraryname> <options>, then R CMD CHECK <filecreatedin R CMD BUILD> <options>

  5. Support Staff 5 Posted by Feodor Fitsner on 01 Mar, 2014 02:41 AM

    Feodor Fitsner's Avatar

    OK, thanks!

  6. 6 Posted by Kirill Müller on 06 Aug, 2014 07:40 PM

    Kirill Müller's Avatar

    I have managed to install R and Rtools, and to run R CMD build and R CMD check, in an AppVeyor test: https://github.com/krlmlr/r-appveyor. It's pre-alpha now, but I'll be working on it so that it actually can be used for testing and building R packages on Windows.

  7. 7 Posted by Scott Chamberla... on 06 Aug, 2014 07:45 PM

    Scott Chamberlain's Avatar

    Kirill - That's awesome. I'll head over to your repo...

    Scott

  8. 8 Posted by Kirill Müller on 09 Aug, 2014 09:05 AM

    Kirill Müller's Avatar

    I think the project is now in a quite stable state -- there's some documentation, too ;-) Does it work for you?

    -Kirill

  9. 9 Posted by Scott Chamberla... on 09 Aug, 2014 03:00 PM

    Scott Chamberlain's Avatar

    Kirill - Tried it again with your updated script. Worked great. https://github.com/ropensci/alm/tree/dev

    thanks for working on this, Scott

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

17 Jun, 2018 04:04 PM
16 Jun, 2018 08:06 PM
16 Jun, 2018 07:30 PM
16 Jun, 2018 09:22 AM
15 Jun, 2018 09:31 PM

 

15 Jun, 2018 08:31 PM
15 Jun, 2018 04:29 PM
15 Jun, 2018 12:39 PM
15 Jun, 2018 12:37 PM
15 Jun, 2018 08:21 AM
14 Jun, 2018 12:44 AM