Fixed errors with R

Unified package names to fix issues with R.java importing.