tag:help.appveyor.com,2012-11-13:/discussions/questions/211-r-supportAppVeyor: Discussion 2018-10-19T08:16:29Ztag:help.appveyor.com,2012-11-13:Comment/318596032014-02-28T17:56:09Z2014-02-28T17:56:09ZR support?<div><p>Hi Scott,</p>
<p>Is it this one: <a href=
"http://cran.rstudio.com/">http://cran.rstudio.com/</a>?</p>
<p>What else should be installed besides the main package?<br>
Do you have any sample app/project to test the installation?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/318596032014-02-28T18:22:53Z2014-02-28T20:59:28ZR support?<div><p>Hi. Yes, that is where you get R. I was testing with this R
library on Github <a href=
"https://github.com/ropensci/rnoaa">https://github.com/ropensci/rnoaa</a>
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 (<a href=
"http://www.gdal.org/">http://www.gdal.org/</a>), so it will likely
error on testing without that, but would still be good to see if we
can get it building at all.</p>
<p>Unfortunately, I don't know much about Windows. I wonder if all
you need is the R exe?</p>
<p>Thanks! Scott</p></div>Scott Chamberlaintag:help.appveyor.com,2012-11-13:Comment/318596032014-02-28T18:35:33Z2014-02-28T18:35:33ZR support?<div><p>OK, thanks! I will look into it to see if this could be easily
installed on build servers.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/318596032014-02-28T20:56:35Z2014-02-28T21:19:20ZR support?<div><p>There's another repo you could try: <a href=
"https://github.com/ropensci/alm">https://github.com/ropensci/alm</a>
Which doesn't rely on GDAL, should work more easily. I added a yaml
file in that repo too.</p>
<p>In addition, the builds probably need to install dependencies on
the library being built. For example, <a href=
"https://github.com/ropensci/alm/blob/master/.travis.yml">this
travis yaml file</a> gives instructions to travis to install
dependencies, which takes the code from the <code>r-travis</code>
repo <a href=
"https://github.com/craigcitro/r-travis/blob/master/scripts/travis-tool.sh#L163-L166">
here</a></p>
<p>The instructions for checking/testing proper installation of an
R package in the <code>r-travis</code> library are <a href=
"https://github.com/craigcitro/r-travis/blob/master/scripts/travis-tool.sh#L198-L214">
here</a>, basically requires <code>R CMD BUILD <libraryname>
<options></code>, then <code>R CMD CHECK <filecreatedin R
CMD BUILD> <options></code></p></div>Scott Chamberlaintag:help.appveyor.com,2012-11-13:Comment/318596032014-03-01T02:41:28Z2014-03-01T02:41:28ZR support?<div><p>OK, thanks!</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/318596032014-08-06T19:40:42Z2014-08-06T19:40:43ZR support?<div><p>I have managed to install R and Rtools, and to run <code>R CMD
build</code> and <code>R CMD check</code>, in an AppVeyor test:
<a href=
"https://github.com/krlmlr/r-appveyor">https://github.com/krlmlr/r-appveyor</a>.
It's pre-alpha now, but I'll be working on it so that it actually
can be used for testing <em>and building</em> R packages on
Windows.</p></div>Kirill Müllertag:help.appveyor.com,2012-11-13:Comment/318596032014-08-06T19:45:59Z2014-08-06T19:46:01ZR support?<div><p>Kirill - That's awesome. I'll head over to your repo...</p>
<p>Scott</p></div>Scott Chamberlaintag:help.appveyor.com,2012-11-13:Comment/318596032014-08-09T09:05:44Z2014-08-09T09:05:46ZR support?<div><p>I think the project is now in a quite stable state -- there's
some documentation, too ;-) Does it work for you?</p>
<p>-Kirill</p></div>Kirill Müllertag:help.appveyor.com,2012-11-13:Comment/318596032014-08-09T15:00:19Z2014-08-09T15:00:20ZR support?<div><p>Kirill - Tried it again with your updated script. Worked great.
<a href=
"https://github.com/ropensci/alm/tree/dev">https://github.com/ropensci/alm/tree/dev</a></p>
<p>thanks for working on this, Scott</p></div>Scott Chamberlain