Permalink
Browse files

Merge pull request #2604 from filmor/master

fix misinterpreted backslashes as escape-sequences by the R-interpreter.

Fixes #2533
  • Loading branch information...
2 parents 8a31419 + 995ece0 commit 13bc13ee3fdd28efb76a9cdb91789cd2a9c9fe9f @Carreau Carreau committed Dec 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/extensions/rmagic.py
@@ -512,7 +512,7 @@ def R(self, line, cell=None, local_ns=None):
# execute the R code in a temporary directory
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 = ''
if line_mode:

0 comments on commit 13bc13e

Please sign in to comment.