how to r script Archive