![]() ![]() This will cause the Python script to run as if it were called from the command line as a module and will loop through all the tickers and save their constituents to CSV files as before. Raise embedded.RRuntimeError(_rinterface. Bring Python code to R To use my Python script as is directly in R Studio, I could source it by doing reticulate::sourcepython ('downloadspdrholdings.py'). ![]() _show = _get_exported_value('methods', 'show')įile "/Users/hyunjindominiquecho/Desktop/mcmc_intermediate/python/lib/python3.7/site-packages/rpy2/rinterface_lib/conversion.py", line 44, in _įile "/Users/hyunjindominiquecho/Desktop/mcmc_intermediate/python/lib/python3.7/site-packages/rpy2/rinterface.py", line 624, in _call_ ![]() I am getting the error messages below: RRuntimeError: Error in library.dynam(lib, package, package.lib) :įile "/Users/hyunjindominiquecho/Desktop/mcmc_intermediate/python/lib/python3.7/site-packages/rpy2/robjects/_init_.py", line 19, in įrom import RObjectMixin, RObjectįile "/Users/hyunjindominiquecho/Desktop/mcmc_intermediate/python/lib/python3.7/site-packages/rpy2/robjects/robject.py", line 58, in įile "/Users/hyunjindominiquecho/Desktop/mcmc_intermediate/python/lib/python3.7/site-packages/rpy2/robjects/robject.py", line 70, in RObjectMixin Sys.setenv(RETICULATE_PYTHON = "python/bin/python")īut I can't import all of the python packages that I want to import (even after installing the modules in my Python virtualenv with the pip install. Setwd('/Users/hyunjindominiquecho/Desktop/mcmc_intermediate/') I directly followed the instructions outlined in the website below, to set python virtualenv and install reticulate r package: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |