Skip to content

Commit 9da97e9

Browse files
committed
refactor: adapt code to new funky pkg
1 parent eeb5c16 commit 9da97e9

File tree

7 files changed

+621
-623
lines changed

7 files changed

+621
-623
lines changed

DESCRIPTION

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Imports:
2020
curl (>= 5.2.1),
2121
dplyr (>= 1.1.4),
2222
fs (>= 1.6.4),
23+
funky (>= 0.0.9000),
2324
glue (>= 1.7.0),
2425
httr2 (>= 1.0.1),
2526
jsonlite (>= 1.8.8),
@@ -36,6 +37,7 @@ Imports:
3637
Suggests:
3738
pkgsnip (>= 0.0.9037)
3839
Remotes:
40+
gitlab::rpkg.dev/funky,
3941
gitlab::rpkg.dev/pal,
4042
gitlab::rpkg.dev/pkgsnip
4143
Config/Needs/website: gitlab::rpkg.dev/pkgdown.tpl

R/nocodb-package.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#' @section Package configuration:
22
#'
3-
#' `r pkgsnip::md_snip(id = "pkg_config")`
3+
#' `r pkgsnip::md_snip(id = "funky_config")`
44
#'
55
#' ```{r, echo = FALSE}
6-
#' pal::print_pkg_config()
6+
#' funky::print_config()
77
#' ```
88
#'
99
#' @keywords internal

R/nocodb.gen.R

Lines changed: 306 additions & 306 deletions
Large diffs are not rendered by default.

R/sysdata.rda

0 Bytes
Binary file not shown.

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pkgsnip::md_snip(id = "pkg_usage") %>%
6464

6565
```{r}
6666
#| label: pkg-config
67-
#| child: !expr pkgsnip::snip_path("pkg-config.Rmd")
67+
#| child: !expr pkgsnip::snip_path("funky-config.Rmd")
6868
```
6969

7070
## Development

Rmd/nocodb.Rmd

Lines changed: 306 additions & 306 deletions
Large diffs are not rendered by default.

Rmd/sysdata.nopurl.Rmd

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,11 @@ library(magrittr,
2727

2828
# Define data
2929

30-
## `pkg_config`
30+
## `funky_config`
3131

3232
```{r}
33-
pkg_config <-
34-
tibble::tibble(key = character(),
35-
default_value = list(),
36-
default_value_dynamic = character(),
37-
require = logical(),
38-
description = character()) |>
33+
funky_config <-
34+
funky::ptype_config |>
3935
tibble::add_row(key = "origin",
4036
require = TRUE,
4137
description = "[Origin](https://developer.mozilla.org/docs/Glossary/Origin) of the NocoDB server to work with.") |>
@@ -61,7 +57,7 @@ Save all the small data objects as a single internal file `R/sysdata.rda`. Note
6157
to package users.
6258

6359
```{r}
64-
usethis::use_data(pkg_config,
60+
usethis::use_data(funky_config,
6561
internal = TRUE,
6662
overwrite = TRUE,
6763
compress = "xz",

0 commit comments

Comments
 (0)