Created
April 19, 2024 19:57
-
-
Save LouisFaure/39c3ada3a60d5ea16ae10d9d9ab54879 to your computer and use it in GitHub Desktop.
set conda environment specific R_HOME before import rpy2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys | |
os.environ['R_HOME'] = sys.exec_prefix+"/lib/R/" | |
import rpy2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment