R package cap, performs Covariate Assisted Principal (CAP) regression for covariance matrix outcomes.