I am trying to set up reticulate on my computer and am having a hard time. I am following the steps outlined in " Python and R for the Modern Data Scientist: The Best of Both Worlds"
In the console:
install.packages("reticulate")
library(reticulate)
install_miniconda()
conda_create("modern_data")
I have then gone to Tools > Global Option > Python and selected the "/r-miniconda/envs/modern_data/" as my Interpreter
But when I fun the following code (just importing a Python package, but its the same error for any Python chunk) I get an error:
import pandas as pd
Error:
Error: unexpected symbol in "import pandas"
Error in python_config(python_version, required_module, forced = "use_python function") : Error 1 occurred running C:/Users/User1/AppData/Local/r-miniconda/envs/modern_data/python.exe
I have also tried:
use_python("C:/Users/MatthewLeonard/AppData/Local/r-miniconda/envs/modern_data/python.exe")
And when I check:
py_available()
It returns FALSE
I'm not sure what the next steps are for trouble shooting this, but would appreciate some help.