mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
help: bioconductor: add offline guide
This commit is contained in:
commit
cd5a71d67b
|
|
@ -71,3 +71,16 @@ BiocManager::install("$package_name")
|
|||
</pre>
|
||||
|
||||
|
||||
|
||||
### 离线使用
|
||||
|
||||
如果您只能访问内网镜像站,在完成下列步骤后,依然可以正常使用 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 所在的路径
|
||||
)
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue