Issue #7
new
Under windows 10, R 3.3, Anaconda, python 3.5. refresh install,
install.packages was successful, but loading failed. Any idea why?
library(PythonInR) Error : .onLoad failed in loadNamespace() for 'PythonInR', details: call: grepl(dllName, dir(pyHome), fixed = TRUE) error: invalid 'pattern' argument Error: package or namespace load failed for ‘PythonInR’
Comments (2)
-
repo owner -
I have the same problem, Windows 7, Microsoft R Open Version 3.4.1.0 and Python 3.6.
Your suggested solution/workaround works for me though:
PythonInR:::pyConnectWinDll(dllName="python36.dll", dllDir=NULL, majorVersion=3, pythonHome="c:/Program Files/Python36", pyArch="64bit")
- Log in to comment
Thats hard to say from here, the error definitely occurs when PythonInR tries to detect the settings for your Python version.
Did you provide an
pythonExePath
topyConnect
? And or Python registered in the path?What should always work is when you do something like the following with your settings.