Add the ability to run a R data function stepwise to make easier to develop and debug the script. During the stepwise execution It should be possible to inspect variables and do code changes or running commands to set variables.
A workaround is to use R Studio but that requires that the data is manually exported to CSV to make it available to the script from R Studio. R Studio comes with a Console that allows you to run commands to inspect and set the variables in your script.