Skip to content

Commit

Permalink
refactor: adapt to upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
salim-b committed Dec 14, 2024
1 parent bf20e20 commit fe6e226
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ knitr::opts_knit$set(root.dir = getwd())
`r pal::desc_value("Description") %>% stringr::str_replace(" (pins)( package) ", " [\\1](https://pins.rstudio.com/)\\2 ")`

```{r}
#| label: documentation
#| label: pkg-doc
#| eval: !expr '!isTRUE(getOption("pal.build_readme.is_pkgdown"))'
#| results: asis
#| echo: false
pkgsnip::md_snip(id = "pkgdown_notice") %>%
pkgsnip::md_snip(id = "pkgdown_site") %>%
paste0("## Documentation\n\n",
"[![Netlify Status](https://api.netlify.com/api/v1/badges/db173373-dd17-47ef-959b-695d01482a1d/deploy-status)]",
"(https://app.netlify.com/sites/pkgpins-rpkg-dev/deploys)\n\n",
Expand Down Expand Up @@ -54,16 +54,16 @@ The above inline R code will eventually result in this:
## Installation

```{r}
#| label: install-snippet-dev
#| child: !expr pkgsnip::snip_path("installation-notice_dev-version_gitlab.Rmd")
#| label: pkg-instl-dev
#| child: !expr pkgsnip::snip_path("pkg-instl-dev-gitlab.Rmd")
```

```{r}
#| label: usage
#| label: pkg-usage
#| eval: !expr isTRUE(getOption("pal.build_readme.is_pkgdown"))
#| results: asis
#| echo: false
pkgsnip::md_snip(id = "usage_notice") %>%
pkgsnip::md_snip(id = "pkg_usage") %>%
paste0("## Usage\n\n", .) %>%
pal::cat_lines()
```
Expand All @@ -73,15 +73,15 @@ pkgsnip::md_snip(id = "usage_notice") %>%
### R Markdown format

```{r}
#| label: rmd-format
#| child: !expr pkgsnip::snip_path("rmd-package-notice.Rmd")
#| label: pkgpurl
#| child: !expr pkgsnip::snip_path("pkgpurl.Rmd")
```

### Coding style

```{r}
#| label: coding-style
#| child: !expr pkgsnip::snip_path("coding-style-notice.Rmd")
#| label: pkg-code-style
#| child: !expr pkgsnip::snip_path("pkg-code-style.Rmd")
```

## See also
Expand Down

0 comments on commit fe6e226

Please sign in to comment.