Revert "R script"

This reverts commit 836a1473d55d96d07d5b1b682a7be450ebf78642.