[cem] Problem with the k2k function in R