Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita5485bc

Browse files
committed
knitr::convert_chunk_header(type = "yaml")
1 parent13339c5 commita5485bc

File tree

7 files changed

+29
-14
lines changed

7 files changed

+29
-14
lines changed

‎DESCRIPTION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ Config/Needs/website:
7272
tidyverse/tidytemplate
7373
Config/testthat/edition: 3
7474
Encoding: UTF-8
75-
RoxygenNote: 7.3.2
75+
RoxygenNote: 7.3.2.9000
7676
Config/usethis/last-upkeep: 2025-05-05

‎README.Rmd‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ output:
55
always_allow_html:yes
66
---
77

8-
```{r, include = FALSE}
8+
```{r}
9+
#| include: false
910
knitr::opts_chunk$set(
1011
fig.path = file.path(getwd(), "man/figures/README"),
1112
cache.path = file.path(getwd(), "man/_cache/"),
@@ -38,5 +39,6 @@ pkgdepends is a toolkit for package dependencies, downloads and
3839
installations, to be used in other packages. If you are looking for a
3940
package manager, see[pak](https://github.com/r-lib/pak).
4041

41-
```{r child = "tools/doc/README-body.Rmd"}
42+
```{r}
43+
#| child: tools/doc/README-body.Rmd
4244
```

‎man/pkgdepends-package.Rd‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎tools/doc/README-body.Rmd‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,22 @@
2121

2222
Install the package with:
2323

24-
```{r eval = FALSE}
24+
```{r}
25+
#| eval: false
2526
install.packages("pkgdepends")
2627
```
2728

2829
If you need the development version, install it with
2930

30-
```{r eval = FALSE}
31+
```{r}
32+
#| eval: false
3133
pak::pak("r-lib/pkgdepends")
3234
```
3335

3436
#Usage
3537

36-
```{r eval = FALSE}
38+
```{r}
39+
#| eval: false
3740
library(pkgdepends)
3841
```
3942

@@ -57,7 +60,8 @@ See ["Package references"][pkg_refs] for details.
5760

5861
Dependencies of the development version of the cli package:
5962

60-
```{asciicast deps}
63+
```{asciicast}
64+
#| label: deps
6165
pd <- new_pkg_deps("r-lib/pkgcache")
6266
pd$solve()
6367
pd$draw()
@@ -69,7 +73,8 @@ See the [`pkg_deps`][pkg_deps] class for details.
6973

7074
Downloading all dependencies of a package:
7175

72-
```{asciicast download}
76+
```{asciicast}
77+
#| label: download
7378
pdl <- new_pkg_download_proposal("r-lib/cli")
7479
pdl$resolve()
7580
pdl$download()
@@ -81,7 +86,8 @@ See the [`pkg_download_proposal`][pkg_download_proposal] class for details.
8186

8287
Installing or updating a set of package:
8388

84-
```{asciicast install}
89+
```{asciicast}
90+
#| label: install
8591
lib <- tempfile()
8692
dir.create(lib)
8793
pdi <- new_pkg_installation_proposal(

‎tools/doc/pkg-refs.Rmd‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
```{r include = FALSE}
2+
```{r}
3+
#| include: false
34
options(
45
pkg.show_progress = FALSE,
56
cli.unicode = FALSE)

‎tools/doc/resolution-result.Rmd‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
*`type`: ref type.
4242
*`version`: package version.
4343

44-
```{r child="download-result.Rmd", eval = getOption("rx_downloads", FALSE)}
44+
```{r}
45+
#| child: download-result.Rmd
46+
#| eval: !expr getOption("rx_downloads", FALSE)
4547
```
4648

4749
Additional columns might be present. They are either used internally or

‎vignettes/pkgdepends-how-to.Rmd‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ output:
66
toc_depth:2
77
---
88

9-
```{r, include = FALSE, cache = FALSE}
9+
```{r}
10+
#| include: false
11+
#| cache: false
1012
knitr::opts_chunk$set(
1113
collapse = TRUE,
1214
comment = "#>",
@@ -16,7 +18,9 @@ knitr::opts_chunk$set(
1618
)
1719
```
1820

19-
```{r, include = FALSE, cache = FALSE}
21+
```{r}
22+
#| include: false
23+
#| cache: false
2024
# Turn on ANSI colors
2125
options(
2226
crayon.enabled = TRUE,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp