Salut, je viens de télécharger rpy2 et Python 2.6. Lorsque j'essaie d'exécuter un exemple de code que j'ai trouvé sur Internet, j'ai cette erreur. Quelqu'un peut-il expliquer pourquoi cela se produit et comment puis-je le réparer? Merci.Comment configurer rpy2?
import rpy2.robjects as RO
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import rpy2.robjects as RO
File "C:\Python26\lib\site-packages\rpy2\robjects\__init__.py", line 12, in <module>
import rpy2.rinterface as rinterface
File "C:\Python26\lib\site-packages\rpy2\rinterface\__init__.py", line 22, in <module>
"This might be because R.exe is nowhere in your Path.")
RuntimeError: Unable to determine R version from the registery.Calling the command 'R RHOME' does not return anything.
This might be because R.exe is nowhere in your Path.
Cette page explique comment définir le chemin: http://www.computerhope.com/issues/ch000549.htm – SiggyF