First, each time I need a new functionality in knitr and search, I see Yihui already has it! Runr is very cool and promising.
I am trying to create Rmd with both R and Python, and am having trouble getting runr to work.
Here is the exact error:
py$exec("1+1")
Error in socketConnection(port = port, open = "r+", blocking = TRUE, server = FALSE) :
cannot open the connection
In addition: Warning message:
In socketConnection(port = port, open = "r+", blocking = TRUE, server = FALSE) :
localhost:22222 cannot be opened
And the error with start is,
> py = proc_python(8080)
> py$start()
File "/Library/Frameworks/R.framework/Versions/3.2/Resources/library/runr/lang/python_socket.py", line 25
except socket.error , msg:
^
SyntaxError: invalid syntax
First, each time I need a new functionality in knitr and search, I see Yihui already has it! Runr is very cool and promising.
I am trying to create Rmd with both R and Python, and am having trouble getting runr to work.
Here is the exact error:
And the error with start is,