rmagic can't handle cells ending in a comment

Issue #172 resolved
Thomas Kluyver
created an issue

Forwarding IPython issue 4681: The %%R cell magic fails if the cell ends in a comment, with the message "Error while parsing the string."

screenshot of the error