[R-pkg-devel] Windows tests for CRAN submission
shivaram.venkataraman at gmail.com
Wed May 10 23:46:21 CEST 2017
On Wed, May 10, 2017 at 9:58 AM, Uwe Ligges <ligges at statistik.tu-dortmund.de
> On 10.05.2017 07:58, Shivaram Venkataraman wrote:
>> I'm a first time package submitter to CRAN and have a question on how to
>> handle unit tests on Windows. The SparkR  package  file that we are
>> trying to submit passes "R CMD check --as-cran" with no errors on both
>> Linux and OS X.
>> On Windows, the package builds successfully but requires additional
>> binaries  to be installed in order for the unit tests to run. While we
>> have a automated test runner that installs the binaries and runs tests on
>> every commit  on AppVeyor, when "R CMD check --as-cran" is run on
>> winbuilder, the tests fail.
>> Given this situation, is it possible to specify in our CRAN submission
>> the package should only be tested on Unix machines ? Or is it recommended
>> that we include scripts to install the additional binaries during a CRAN
>> check on winbuilder ?
> Tell me and if the requirements are reasonable and easy to install I'll
> consider to install them.
> Thanks for your reply. The requirements are to have the Hadoop windows
utils package installed. I wrote a small power shell script to do this at
https://gist.github.com/shivaram/bd5d17c31ce9d89035559fa956f59fc1 . The
script sets $HADOOP_HOME and adds $HADOOP_HOME/bin to $PATH. More details
about what is getting installed is at
On a related note: Would anybody happen to know what the value of JAVA_HOME
is set to on the winbuilder machine ?
> Uwe Ligges
> Thanks for your help and please let me know if any further details about
>> the package will help in resolving this.
>>  https://github.com/apache/spark/tree/master/R
>>  https://github.com/apache/spark/blob/master/R/WINDOWS.md#unit-tests
>>  https://ci.appveyor.com/project/ApacheSoftwareFoundation/spa
>> [[alternative HTML version deleted]]
>> R-package-devel at r-project.org mailing list
[[alternative HTML version deleted]]
More information about the R-package-devel