R package CorReg