[R] invoking python from R

From: 决扁全 <kheom03_at_gmail.com>
Date: Wed, 20 Apr 2011 18:43:10 -0400

Dear colleagues,

I was wondering whether anyone may give me some help on a python issue in R.
I tried to invoke Python from R, but failed. I have set up a system path to call python: "C:\python27" in path file. In addition, I have confirmed python interpreter properly.

The code I used is typical for checking, which is as follows: x <- .Python("listdir", "/tmp", .module="posix")

The command gives me the following message:
> x <- .Python("listdir", "/tmp", .module="posix")

Error: could not find function ".Python" Any help would be greatly appreciated.



        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 20 Apr 2011 - 23:18:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Apr 2011 - 01:40:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive