Speedgrader recognizes python script file (.py) submissions as plain text, and shows the code content in the browser.
However, this feature is not available for r script files (.R). I hope the speedgrader can show script code files for other languages as it does for python scripts.