Integrating R and the CDK