hello everyone:
I wonder if there is a method that could export the robjects created
from python to R , so that I can use the robjects directly in R
code .
for example : df= DataFrame(xx) is a data frame created in
python , and I wish make it public in embedded R , so I can
Success:
@@ -188,6 +188,8 @@
r_exec = os.path.join(r_home, 'bin', 'R')
# Twist if Win32
if sys.platform == "win32":
+if sys.version.find("64 bit") > 0:
+r_exec = os.path.join(r_home, 'bin', 'x64', 'R')
if sys.version_info >= (3,):
import sub
On 2013-01-02 15:25, Johan Johansson wrote:
> Success:
>
> @@ -188,6 +188,8 @@
> r_exec = os.path.join(r_home, 'bin', 'R')
> # Twist if Win32
> if sys.platform == "win32":
> +if sys.version.find("64 bit") > 0:
> +r_exec = os.path.join(r_home, 'bin', 'x64', 'R')
On 2 January 2013 14:25, Johan Johansson wrote:
> +if sys.version.find("64 bit") > 0:
General Pythonicness tip, you can check it more readably like this:
if '64 bit' in sys.version:
Best wishes,
Thomas
--
Mast