Hi,
New to both knitting, reticulate, and python.
I am trying to html knit a "hello world" code chunk with reticulate R, but without success.
The (green) "Run Current Chunk" button works fine within the .Rmd project.
Yet, the knitting process halts on my reticulate::source_python() call.
The R Markdown console output tab halts stating "label: unnamed-chunk-1" (at 67%).
Using mac os catalina (10.15.7), anaconda for mac (Navigator 1.9.12), and having the latest rstudio/reticulate installed via remotes::install_github("rstudio/reticulate"). I am not using miniconda, only using the base default environment in anaconda.
Dear cderv,
Thank You so much for Your reply.
I think I tried that option.
Eventually I settled for adding the (hidden) file ".Renviron" where the .Rmd file resides;
and setting the RETICULATE_PYTHON variable by the line;
Sys.setenv(RETICULATE_PYTHON = "/Users/pept/opt/anaconda3/bin/python3")
Yet, not sure if I am pointing to the anaconda python assignment in the ".Renviron" as both the py_config() and py_discover_config() seems to point to the "default installed" mac python path /usr/bin/python (with python 2.7).
Knitting seems to succeed even with
knitr::knit_engines$set(python = reticulate::eng_python)
commented out.