Fix for Rcpp
check_inputs function, fix bug in call to prioritize_covariates