Communication between R and C