This is an old revision of the document!
Python in R
reticulate is an R package that brings python into R.
library(reticulate)
# creates like 'python -m venv .venv'
use_virtualenv(".venv") # analogous to 'source .venv/bin/activate'
The RStudio environment explorer (top right) shows python variables and matplotlib graphs show up in the plot browser!