I installed tidyverse in conda environment,but it could not be library.Then I tried to install pheatmap package in conda environment and successfully loaded it into RStudio.I don't know what happened and how to deal with it. I want to run R in conda environment in RStudio. Here is my running record.
Sys.setenv(LANGUAGE = 'en') .libPaths('/home/gjdhxy/miniconda3/envs/R/lib/R/library/') .libPaths() library(pheatmap) library(tidyverse)
>Sys.setenv(LANGUAGE = 'en') >.libPaths('/home/gjdhxy/miniconda3/envs/R/lib/R/library/') >.libPaths()  "/home/gjdhxy/miniconda3/envs/R/lib/R/library"  "/usr/lib64/R/library" >library(pheatmap) >library(tidyverse) Error: package or namespace load failed for ‘tidyverse’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/gjdhxy/miniconda3/envs/R/lib/R/library/haven/libs/haven.so': /home/gjdhxy/miniconda3/envs/R/lib/R/library/haven/libs/haven.so: undefined symbol: libiconv