import R class directly