当我激活conda env并运行R时,我可以加载一个程序包。当我在基本环境中启动R并使用reticulate::use_condaenv
加载我的conda env时,R无法加载该程序包。错误或操作员错误?
balter@balterbox:~$ R
R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-conda_cos6-linux-gnu (64-bit)
> library(reticulate)
> use_condaenv('microbiome')
> library(BiocStyle)
Error in library(BiocStyle) : there is no package called ‘BiocStyle’
>
Save workspace image? [y/n/c]: n
balter@balterbox:~$ conda activate microbiome
(microbiome) balter@balterbox:~$ R
R version 3.4.1 (2017-06-30) -- "Single Candle"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
> library(BiocStyle)
>
Save workspace image? [y/n/c]: n
(microbiome) balter@balterbox:~$ conda deactivate
Conda信息
balter@balterbox:~$ conda info
active environment : None
shell level : 0
user config file : /home/balter/.condarc
populated config files : /home/balter/.condarc
conda version : 4.5.9
conda-build version : not installed
python version : 3.6.5.final.0
base environment : /home/balter/conda (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
https://conda.anaconda.org/anaconda/linux-64
https://conda.anaconda.org/anaconda/noarch
https://conda.anaconda.org/r/linux-64
https://conda.anaconda.org/r/noarch
https://conda.anaconda.org/bioconda/linux-64
https://conda.anaconda.org/bioconda/noarch
package cache : /home/balter/conda/pkgs
/home/balter/.conda/pkgs
envs directories : /home/balter/conda/envs
/home/balter/.conda/envs
platform : linux-64
user-agent : conda/4.5.9 requests/2.19.1 CPython/3.6.5 Linux/4.15.0-29-generic ubuntu/18.04 glibc/2.27
UID:GID : 1000:1000
netrc file : None
offline mode : False
环境信息
(microbiome) balter@balterbox:~$ conda list
# packages in environment at /home/balter/conda/envs/microbiome:
#
# Name Version Build Channel
bioconductor-biocinstaller 1.28.0 r3.4.1_0 bioconda
bioconductor-biocstyle 2.6.0 r3.4.1_0 bioconda
blas 1.1 openblas conda-forge
bzip2 1.0.6 h470a237_2 conda-forge
ca-certificates 2018.4.16 0 conda-forge
cairo 1.14.12 he56eebe_3 conda-forge
curl 7.61.0 h93b3f91_1 conda-forge
fontconfig 2.13.0 h0c61d53_4 conda-forge
freetype 2.8.1 hfa320df_1 conda-forge
gettext 0.19.8.1 0 conda-forge
glib 2.55.0 h464dc38_2 conda-forge
gmp 6.1.2 hfc679d8_0 conda-forge
graphite2 1.3.11 hfc679d8_0 conda-forge
gsl 2.2.1 blas_openblas_4 [blas_openblas] conda-forge
harfbuzz 1.8.5 h2bb21d5_0 conda-forge
icu 58.2 hfc679d8_0 conda-forge
jpeg 9c h470a237_0 conda-forge
krb5 1.14.6 0 conda-forge
libcurl 7.61.0 h1ad7b7a_0
libffi 3.2.1 3 conda-forge
libgcc 7.2.0 h69d50b8_2
libgcc-ng 7.2.0 hdf63c60_3
libgfortran 3.0.0 1
libiconv 1.15 h470a237_1 conda-forge
libpng 1.6.35 ha92aebf_0 conda-forge
libssh2 1.8.0 h5b517e9_2 conda-forge
libstdcxx-ng 7.2.0 hdf63c60_3
libtiff 4.0.9 he6b73bb_1 conda-forge
libuuid 1.0.3 1 conda-forge
libxcb 1.13 h470a237_2 conda-forge
libxml2 2.9.8 h422b904_2 conda-forge
ncurses 6.1 hfc679d8_1 conda-forge
openblas 0.2.20 8 conda-forge
openssl 1.0.2o h470a237_1 conda-forge
pandoc 2.2.2 1 conda-forge
pango 1.40.14 h9105a7a_2 conda-forge
pcre 8.41 h470a237_2 conda-forge
pixman 0.34.0 2 conda-forge
pthread-stubs 0.4 h470a237_1 conda-forge
r-ape 5.1 r341hfc679d8_1 conda-forge
r-assertthat 0.2.0 r3.4.1_0 conda-forge
r-backports 1.1.2 r341h470a237_1 conda-forge
r-base 3.4.1 h4fe35fd_8 conda-forge
r-base64enc 0.1_3 r341h470a237_1 conda-forge
r-bitops 1.0_6 r341h470a237_1 conda-forge
r-bookdown 0.7 r341h6115d3f_0 conda-forge
r-catools 1.17.1.1 r341hfc679d8_1 conda-forge
r-cli 1.0.0 r3.4.1_0 conda-forge
r-cluster 2.0.6 r3.4.1_0 conda-forge
r-codetools 0.2_15 r3.4.1_0 conda-forge
r-colorspace 1.3_2 r341h470a237_1 conda-forge
r-crayon 1.3.4 r3.4.1_0 conda-forge
r-dichromat 2.0_0 r3.4.1_0 conda-forge
r-digest 0.6.15 r341h470a237_1 conda-forge
r-doparallel 1.0.11 r3.4.1_0 conda-forge
r-evaluate 0.10.1 r3.4.1_0 conda-forge
r-fastmatch 1.1_0 r341h470a237_1 conda-forge
r-foreach 1.4.4 r3.4.1_0 conda-forge
r-ggplot2 3.0.0 r341h6115d3f_0 conda-forge
r-glue 1.3.0 r341h470a237_1 conda-forge
r-gridbase 0.4_7 r3.4.1_0 conda-forge
r-gridextra 2.3 r3.4.1_0 conda-forge
r-gtable 0.2.0 r3.4.1_0 conda-forge
r-highr 0.7 r341_0 conda-forge
r-htmltools 0.3.6 r341hfc679d8_1 conda-forge
r-igraph 1.2.1 r341h26a2512_1 conda-forge
r-irlba 2.3.2 r341h470a237_1 conda-forge
r-iterators 1.0.10 r341_0 conda-forge
r-jsonlite 1.5 r341h470a237_1 conda-forge
r-knitr 1.20 r3.4.1_0 conda-forge
r-labeling 0.3 r3.4.1_0 conda-forge
r-lattice 0.20_34 r3.4.1_0 conda-forge
r-lazyeval 0.2.1 r341h470a237_1 conda-forge
r-magrittr 1.5 r3.4.1_0 conda-forge
r-markdown 0.8 r341h470a237_2 conda-forge
r-mass 7.3_50 r341hc070d10_1 conda-forge
r-matrix 1.2_14 r341h470a237_1 conda-forge
r-mgcv 1.8_24 r341h470a237_1 conda-forge
r-mime 0.5 r341h470a237_1 conda-forge
r-munsell 0.5.0 r341_0 conda-forge
r-nlme 3.1_131 r341ha44fe06_1 conda-forge
r-nmf 0.21.0 r341hfc679d8_1 conda-forge
r-phangorn 2.3.1 r341hfc679d8_1 conda-forge
r-pillar 1.2.2 r341h6115d3f_1 conda-forge
r-pkgconfig 2.0.1 r3.4.1_0 conda-forge
r-pkgmaker 0.22 r3.4.1_0 conda-forge
r-plyr 1.8.4 r341hfc679d8_1 conda-forge
r-quadprog 1.5_5 r341ha44fe06_1 conda-forge
r-r6 2.2.2 r3.4.1_0 conda-forge
r-rcolorbrewer 1.1_2 r3.4.1_0 conda-forge
r-rcpp 0.12.17 r341h9d2a408_1 conda-forge
r-registry 0.5 r3.4.1_0 conda-forge
r-reshape2 1.4.3 r341hfc679d8_1 conda-forge
r-reticulate 1.10 r341hfc679d8_0 conda-forge
r-rlang 0.2.1 r341h470a237_1 conda-forge
r-rmarkdown 1.10 r341h6115d3f_0 conda-forge
r-rngtools 1.3.1 r341_0 conda-forge
r-rprojroot 1.3_2 r3.4.1_0 conda-forge
r-scales 0.5.0 r341hfc679d8_1 conda-forge
r-stringi 1.2.3 r341hfc679d8_1 conda-forge
r-stringr 1.3.1 r341_0 conda-forge
r-tibble 1.4.2 r341h470a237_1 conda-forge
r-tinytex 0.5 r341h6115d3f_0 conda-forge
r-utf8 1.1.3 r341h470a237_1 conda-forge
r-viridislite 0.3.0 r3.4.1_0 conda-forge
r-withr 2.1.1 r3.4.1_0 conda-forge
r-xfun 0.3 r341_0 conda-forge
r-xtable 1.8_2 r3.4.1_0 conda-forge
r-yaml 2.1.19 r341h470a237_1 conda-forge
readline 7.0 haf1bffa_1 conda-forge
tk 8.6.8 0 conda-forge
xorg-kbproto 1.0.7 h470a237_2 conda-forge
xorg-libice 1.0.9 h470a237_4 conda-forge
xorg-libsm 1.2.2 h470a237_5 conda-forge
xorg-libx11 1.6.5 h470a237_2 conda-forge
xorg-libxau 1.0.8 h470a237_6 conda-forge
xorg-libxdmcp 1.1.2 h470a237_7 conda-forge
xorg-libxext 1.3.3 h470a237_4 conda-forge
系统信息
balter@balterbox:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic