RでPythonプログラムを走りたいので、
こうしたらいけそうです。
> shell("type hello.py", intern=T)
[1] "print(\"hello\")"
> a <- system("python hello.py",intern=T)
> a
[1] "hello"
More than 3 years have passed since last update.
RでPythonプログラムを走りたいので、
こうしたらいけそうです。
> shell("type hello.py", intern=T)
[1] "print(\"hello\")"
> a <- system("python hello.py",intern=T)
> a
[1] "hello"
Register as a new user and use Qiita more conveniently
Go to list of users who liked