knitr::opts_chunk$set(echo = TRUE)
library(reticulate)
For help installing Python to your local machine, see: https://docs.python-guide.org/
See also: https://support.posit.co/hc/en-us/articles/1500007929061-Using-Python-with-the-RStudio-IDE
reticulate::install_miniconda()
reticulate::conda_create("~/r-reticulate")
use_python('~/r-reticulate/bin/python3')
py_config()
# General Python packages:
conda_install("~/r-reticulate", "pandas")
conda_install("~/r-reticulate", "scipy")
conda_install("~/r-reticulate", "seaborn")
#conda_install("~/r-reticulate", "datetime") # install with command line $: pip3 install datetime
# Packages for Reddit:
conda_install("~/r-reticulate", "praw")
#conda_install("~/r-reticulate", "pmaw") # install with command line $: pip3 install pmaw
reticulate::use_condaenv("~/r-reticulate")