Closed wjsi closed 7 years ago
@siyuwj
That is a good point. I see a few things that can be done:
@poplav I added check_packages in register_serializer. Spark tests are skipped when SparkR is not installed.
@siyuwj I think your changes look good, we are having issues with tests at the moment so bear with us regarding timing of merging.
@siyuwj Thanks again for your contribution. We recently finished a revamp of our testing/build process at https://github.com/jupyter/declarativewidgets/pull/532. Can you rebase this with master and then we'll merge it!
As R users are not always using SparkR, it is better to activate the Spark DataFrame serializer only when SparkR is installed.
BTW, check_packages() in declarativewidgets/kernel-r/declarativewidgets/R/serializers.r always returns TRUE. It is also fixed in this PR.