[phecomp] adding R library