Fix R scripts to match changes to make sim output shiny-compatible.