Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed Nov 3, 2023
1 parent eef6b0e commit 8fb6a57
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
6 changes: 1 addition & 5 deletions R/interactive.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ interactive_discovery <- function(type = c("gt", "reactable")) {
name = attr(admiraldiscovery::discovery$dataset, 'label'),
maxWidth = 100
),
dataset_type = reactable::colDef(
name = attr(admiraldiscovery::discovery$dataset_type, 'label'),
maxWidth = 100
),
variable = reactable::colDef(
name = attr(admiraldiscovery::discovery$variable, 'label'),
maxWidth = 100
Expand Down Expand Up @@ -72,7 +68,7 @@ interactive_discovery <- function(type = c("gt", "reactable")) {
.after = "fn_url"
) |>
gt() |>
cols_hide(columns = c("fn", "fn_url", "package")) |>
cols_hide(columns = c("fn", "fn_url", "package", "dataset_type")) |>
cols_label(function_link = "Function") |>
fmt_markdown(columns = "function_link") |>
sub_missing(missing_text = "") |>
Expand Down
3 changes: 2 additions & 1 deletion data-raw/DATASET.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## code to prepare `DATASET` dataset goes here

discovery <- readr::read_csv(file = "./data-raw/admiral-lookup-book.csv")
discovery <- readr::read_csv(file = "./data-raw/admiral-lookup-book.csv") |>
dplyr::arrange(!dataset %in% "ADSL", dataset, variable)

attr(discovery$dataset, 'label') <- "Data Set"
attr(discovery$dataset_type, 'label') <- "Data Set Type" # ADSL, BDS, OCCDS
Expand Down
Binary file modified data/discovery.rda
Binary file not shown.
7 changes: 7 additions & 0 deletions man/admiraldiscovery-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/discovery.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8fb6a57

Please sign in to comment.