Initial versions of R scripts.