Revert "Update replication.R"

This reverts commit bef1b7b1653f51a84b911cb59bc8fce26a904d28.