rstudio

How to activate existing Python environment with R reticulate

How to activate existing Python environment with R reticulate Question: I have the following existing Python environments: $ conda info –envs base * /home/ubuntu/anaconda3 tensorflow2_latest_p37 /home/ubuntu/anaconda3/envs/tensorflow2_latest_p37 What I want to do is to activate tensorflow2_latest_p37 environment and use it in R code. I tried the following code: library(reticulate) use_condaenv( "tensorflow2_latest_p37") library(tensorflow) tf$constant("Hello Tensorflow!") But it …

Total answers: 1

Install gseapy in R PackagesNotFoundError

Install gseapy in R PackagesNotFoundError Question: I would like to run gseapy in rstudio as I need to perform some pathway analysis using GSEA_InContext. This is what I have: library(reticulate) use_condaenv(‘/home/user/.local/share/r-miniconda/envs/r-reticulate’) conda_install("r-reticulate", "gseapy") However, it throws me error as: ‘/home/user/.local/share/r-miniconda/bin/conda’ ‘install’ ‘–yes’ ‘–name’ ‘r-reticulate’ ‘-c’ ‘conda-forge’ ‘gseapy’ Collecting package metadata (current_repodata.json): …working… done Solving environment: …

Total answers: 1