Add option to specify package of R class. Issue #607.