- Fixing the problems shown for r-devel-linux-x86_64-debian-clang.
- Changing all the statements of class()== or class()!= to is() or !is().
- Fixing a bug that was related to the spark value in the "datagen" function. This issue produced different results when the kerneltype == "network" using spark = 0 or spark = NULL.