Skip to content

Commit

Permalink
Merge pull request #2604 from filmor/master
Browse files Browse the repository at this point in the history
fix misinterpreted backslashes as escape-sequences by the R-interpreter.

Fixes #2533
  • Loading branch information
Carreau committed Dec 16, 2012
2 parents 8a31419 + 995ece0 commit 13bc13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/extensions/rmagic.py
Expand Up @@ -512,7 +512,7 @@ def R(self, line, cell=None, local_ns=None):
# execute the R code in a temporary directory # execute the R code in a temporary directory


tmpd = tempfile.mkdtemp() tmpd = tempfile.mkdtemp()
self.r('png("%s/Rplots%%03d.png",%s)' % (tmpd, png_args)) self.r('png("%s/Rplots%%03d.png",%s)' % (tmpd.replace('\\', '/'), png_args))


text_output = '' text_output = ''
if line_mode: if line_mode:
Expand Down

0 comments on commit 13bc13e

Please sign in to comment.