Revert "R scripts"

This reverts commit c6989ba7bb8144f62126b569541b26bdcc134c44.