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

  10. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:47 AM.

Comments are currently closed for this discussion. You can start a new one.

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

13 Apr, 2024 04:43 PM
12 Apr, 2024 04:56 PM
11 Apr, 2024 11:16 PM
09 Apr, 2024 10:59 PM
08 Apr, 2024 07:50 AM

 

06 Apr, 2024 04:06 AM
05 Apr, 2024 01:26 PM
05 Apr, 2024 10:39 AM
04 Apr, 2024 03:41 PM
31 Mar, 2024 05:51 PM
30 Mar, 2024 01:59 PM