From 7e41b1c75559ae0d7544133e73016a40d147ffd2 Mon Sep 17 00:00:00 2001 From: ZenithalHourlyRate Date: Tue, 25 Apr 2023 17:40:40 +0000 Subject: [PATCH] help: transpile from mirrorz-help --- help/_posts/2017-01-12-bioconductor.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/help/_posts/2017-01-12-bioconductor.md b/help/_posts/2017-01-12-bioconductor.md index 994fe32..8672657 100644 --- a/help/_posts/2017-01-12-bioconductor.md +++ b/help/_posts/2017-01-12-bioconductor.md @@ -71,3 +71,16 @@ BiocManager::install("$package_name") + +### 离线使用 + +如果您只能访问内网镜像站,在完成下列步骤后,依然可以正常使用 Bioconductor 镜像。 +1. 确保 BiocManager 的版本不低于 `1.30.12`。 +2. 使用一台可以访问公网的设备,访问 [https://bioconductor.org/config.yaml](https://bioconductor.org/config.yaml) 下载 `config.yaml`,并将该文件拷贝到 BiocManager 所在的内网设备上。然后,在 `~/.Rprofile` 添加如下配置: + +```r +options( + BIOCONDUCTOR_CONFIG_FILE = "file:///path/to/config.yaml" # config.yaml 所在的路径 +) +``` +