Turn your R scripts into command-line tools.
Recent revisions are kept. Restoring one creates a new revision.