R package for HCP