Initial R integration