Skip to content

Commit

Permalink
Merge pull request #130 from hust-open-atom-club/fix_docs
Browse files Browse the repository at this point in the history
fix CPAN/CRAN/CTAN/crates.md
  • Loading branch information
mudongliang authored Nov 30, 2024
2 parents 6326cc5 + a9c2049 commit 69831c0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/CPAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Perl语言软件包仓库使用帮助

## 初次使用

对于 Perl 5.36 (或 CPAN 2.29)及以上,使用如下命令自动生成 MyConfig.pm
对于 Perl 5.36(或 CPAN 2.29)及以上,使用如下命令自动生成 MyConfig.pm
```bash varcode
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::HandleConfig->edit("pushy_https", 0); CPAN::HandleConfig->edit("urllist", "unshift", "${_http}://${_domain}/CPAN/"); mkmyconfig'
```
Expand Down Expand Up @@ -80,4 +80,4 @@ perl -MCPAN -e 'CPAN::HandleConfig->load();' \\


## 引用
1. [Tuna镜像源使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/CPAN/)
1. [Tuna 镜像源使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/CPAN/)
6 changes: 3 additions & 3 deletions docs/CRAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CRAN 是一个由世界各地的 ftp 和 Web 服务器组成的网络,存储
## 使用方法

### 长期使用
CRAN (The Comprehensive R Archive Network) 镜像源配置文件之一是 `.Rprofile` (linux 下位于 `~/.Rprofile` )。
CRAN (The Comprehensive R Archive Network) 镜像源配置文件之一是 `.Rprofile` (linux 下位于 `~/.Rprofile`)。

在文末添加如下语句:

Expand All @@ -20,11 +20,11 @@ options("repos" = c(CRAN="${_http}://${_domain}/CRAN/"))
打开 R 即可使用该 CRAN 镜像源安装 R 软件包。

### 临时使用
在安装时指定 repo ,如安装 lattice
在安装时指定 repo,如安装 lattice:

```raw varcode
install.packages("lattice", repos="${_http}://${_domain}/CRAN/")
```

## 引用
1. [Tuna镜像源使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/CRAN/)
1. [Tuna 镜像源使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/CRAN/)
2 changes: 1 addition & 1 deletion docs/CTAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ mpm --set-repository=${_http}://${_domain}/CTAN/systems/win32/miktex/tm/packages
```

## 引用
1. [Tuna镜像源使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/CTAN/)
1. [Tuna 镜像源使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/CTAN/)
4 changes: 2 additions & 2 deletions docs/crates.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ title: crates.io 镜像使用帮助
`$CARGO_HOME/config.toml` 中添加如下内容:

:::info CARGO_HOME 默认路径
- 在 Windows 上,`$CARGO_HOME` 默认为:`%USERPROFILE%\.cargo`,例如 C:\Users\test\\.cargo
-*nix 系统 上`$CARGO_HOME` 默认为:`$HOME/.cargo`,例如 /home/test/.cargo
- 在 Windows 上,`$CARGO_HOME` 默认为:`%USERPROFILE%\.cargo`,例如 C:\Users\test\\.cargo
-*nix 系统上`$CARGO_HOME` 默认为:`$HOME/.cargo`,例如 /home/test/.cargo
:::

```toml varcode
Expand Down

0 comments on commit 69831c0

Please sign in to comment.