<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Bioconductor安装]]></title><description><![CDATA[<h2>Bioconductor安装</h2>
<p dir="auto"><a href="https://www.bioconductor.org/install/k" rel="nofollow ugc">https://www.bioconductor.org/install/k</a></p>
<p dir="auto">可能更新已有Bioconductor的版本</p>
<pre><code>if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install(version = "3.13")
</code></pre>
<h2>R镜像源的切换</h2>
<p dir="auto"><a href="https://www.cnblogs.com/raisok/p/10967112.html" rel="nofollow ugc">https://www.cnblogs.com/raisok/p/10967112.html</a></p>
<h2>========================</h2>
<h2>错误记录</h2>
<h4>1. 使用 <code>BiocManager::install('scRNAseq')</code> 安装报错</h4>
<pre><code>* installing *source* package ‘BiocFileCache’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
错误: package ‘ rappdirs ’ was installed before R 4.0.0: please re-install it
停止执行
ERROR: lazy loading failed for package ‘BiocFileCache’
* removing ‘/data_raid/home/lx/R/x86_64-pc-linux-gnu-library/4.1/BiocFileCache’
</code></pre>
<pre><code># 查看安装lib路径
.libPaths()
[1] "/data_raid/home/lx/R/x86_64-pc-linux-gnu-library/4.1"
[2] "/usr/lib/R/site-library"   

# 找到 rappdirs 目录 ，删除
# 因为安装过之前的版本，需要删除后重新安装对应版本
rm -rf /usr/lib/R/site-library/rappdirs
</code></pre>
]]></description><link>http://an.forum.genostack.com/topic/370/bioconductor安装</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 09:21:43 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/370.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Jul 2021 06:30:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bioconductor安装 on Mon, 02 Aug 2021 02:16:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://an.forum.genostack.com/uid/3">@ice-melt</a></p>
<h2>错误记录</h2>
<pre><code>&gt; library(scRNAseq)
&gt; sce &lt;- MacoskoRetinaData()

snapshotDate(): 2021-05-18
see ?scRNAseq and browseVignettes('scRNAseq') for documentation
loading from cache
错误: failed to load resource
  name: EH2690
  title: Macosko retina counts
  reason: 读取链结时发生了错误
</code></pre>
<p dir="auto">原因： 大陆用户在直接连接默认CRAN时由于网络问题无法正常连接<br />
修改源</p>
<pre><code>source("http://bioconductor.org/biocLite.R")
options(BioC_mirror="http://mirrors.ustc.edu.cn/bioc/")
biocLite("RGalaxy")##这样就用中科大的镜像来下载包啦
## bioconductor还有很多其它镜像：https://www.bioconductor.org/about/mirrors/
##https://stat.ethz.ch/R-manual/R-devel/library/utils/html/chooseBioCmirror.html
options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor")
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
</code></pre>
<p dir="auto">发现问依旧<br />
通过debug源码定位到cache目录<code>~/.cache/R</code>,<br />
该目录下<code>ExperimentHub</code>里的数据没完成，有文件处于<code>LOCK</code>状态，删除该目录<br />
再次运行代码会重新下载数据，等待下载结束</p>
]]></description><link>http://an.forum.genostack.com/post/722</link><guid isPermaLink="true">http://an.forum.genostack.com/post/722</guid><dc:creator><![CDATA[ice-melt]]></dc:creator><pubDate>Mon, 02 Aug 2021 02:16:04 GMT</pubDate></item></channel></rss>