Closed
Description
I am creating a vignette for the flair
package (see this PR) and I can successfully knit the vignette on my laptop (the vignette depends on Python, reticulate and pandas), however when I try pkddown::build_site()
I get the following error indicating that the Python specified in RETICULATE_PYTHON
doesn't exist. This is not the case, as I routinely use Python via reticulate in RStudio on this machine, and as I stated above I can I can successfully knit the vignette on my laptop.
Error message:
── Building articles ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Reading 'vignettes/how_to_flair.Rmd'
Reading 'vignettes/python_flair.Rmd'
Error : Failed to render RMarkdown
* Quitting from lines 30-31 (python_flair.Rmd)
* Error in py_discover_config(required_module, use_environment) :
* Python specified in RETICULATE_PYTHON (/opt/miniconda3/binR_PROFILE=/var/folders/65/4844hh0x68x64r5qwzc302tw0000gp/T//RtmpxrALJF/callr-spr-b12b189abcf7) does not exist
In addition: Warning message:
The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "how_to_flair", and the latter is "Add some flair to your source code". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
Error: callr subprocess failed: Failed to render RMarkdown
* Quitting from lines 30-31 (python_flair.Rmd)
* Error in py_discover_config(required_module, use_environment) :
* Python specified in RETICULATE_PYTHON (/opt/miniconda3/binR_PROFILE=/var/folders/65/4844hh0x68x64r5qwzc302tw0000gp/T//RtmpxrALJF/callr-spr-b12b189abcf7) does not exist
Type .Last.error.trace to see where the error occured
Here's the output of py_config()
:
python: /opt/miniconda3/bin/python
libpython: /opt/miniconda3/lib/libpython3.7m.dylib
pythonhome: /opt/miniconda3:/opt/miniconda3
version: 3.7.6 (default, Jan 8 2020, 13:42:34) [Clang 4.0.1 (tags/RELEASE_401/final)]
numpy: /opt/miniconda3/lib/python3.7/site-packages/numpy
numpy_version: 1.18.4
NOTE: Python version was forced by RETICULATE_PYTHON
Note - I set
RETICULATE_PYTHON
in.Renviron
viaRETICULATE_PYTHON="/opt/miniconda3/bin"
Metadata
Metadata
Assignees
Labels
No labels