LNCD

Table of Contents

  • LNCD Home
  • Administration
  • Notebooks
  • Journal Club Presentations
  • Publications
  • Current Projects
  • Completed Projects
  • Current Grants
  • Datasets by Project
  • Brain ROIs and Measures
  • ️Tools And Methods
  • Big Data
  • RA Homepage
  • Undergrad Resources
  • Recent Changes
  • Maintenance
  • Site Map
  • Random Page
LNCD
Admin » Python in R

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:r:python [2026/07/24 13:27] – created willtools:r:python [2026/07/24 13:29] (current) – will
Line 1: Line 1:
 ====== Python in R ====== ====== Python in R ======
-''reticulate'' is an R package that brings python into R.+''reticulate'' is an [[:tools:R|R]] package that brings [[:tools:python]] into R.
  
-<code>+<code r>
 library(reticulate) library(reticulate)
  
-# creates like 'python -m venv .venv'+# use project specific python packages stored in folder created with 
 +#    python -m venv .venv
 use_virtualenv(".venv") # analogous to 'source .venv/bin/activate' use_virtualenv(".venv") # analogous to 'source .venv/bin/activate'
 </code> </code>