Reposition CI code in  Rcode