r for cloud computing code