[R-pkg-devel] Windows tests for CRAN submission
On Wed, May 10, 2017 at 9:58 AM, Uwe Ligges <ligges at statistik.tu-dortmund.de
wrote:
On 10.05.2017 07:58, Shivaram Venkataraman wrote:
Hi I'm a first time package submitter to CRAN and have a question on how to handle unit tests on Windows. The SparkR [1] package [2] 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 [3] 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 [4] 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 that 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 https://github.com/steveloughran/winutils On a related note: Would anybody happen to know what the value of JAVA_HOME is set to on the winbuilder machine ? Thanks Shivaram
Best, Uwe Ligges Thanks for your help and please let me know if any further details about
the package will help in resolving this. Thanks Shivaram [1] https://github.com/apache/spark/tree/master/R [2] http://people.apache.org/~pwendell/spark-releases/spark-2.1. 1-rc4-bin/SparkR_2.1.1.tar.gz [3] https://github.com/apache/spark/blob/master/R/WINDOWS.md#unit-tests [4] https://ci.appveyor.com/project/ApacheSoftwareFoundation/spa rk/history [[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel