re-added Rcpp namespace import, fixed package check