Update RR-replication.R