Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull table notes from tex glossary files and yaml #326

Merged
merged 30 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
54c1ddf
adding rd files for glossary feature
kylebaron Feb 15, 2024
d67df6e
clean up check
kylebaron Feb 15, 2024
6651691
adding test glossary file
kylebaron Feb 15, 2024
8e8386a
split up functionality a bit
kylebaron Feb 15, 2024
e8f8243
glossary text parse
kylebaron Feb 15, 2024
04e344a
add test for st_notes_glo
kylebaron Feb 15, 2024
2d23dfd
test parsing labels
kylebaron Feb 15, 2024
8b608c5
minor documentation fix
kylebaron Feb 15, 2024
26578c9
make_glossaries is generic
kylebaron Feb 15, 2024
59dc8e1
move code to glossary.R file; refactor for more control
kylebaron Feb 15, 2024
03a20ef
continue refactor; tests
kylebaron Feb 16, 2024
e1695ab
documentation; update_abbrev function
kylebaron Feb 22, 2024
7c66d4e
adding support for yaml glossary format
kylebaron Mar 17, 2024
0a9ad04
more testing for glossary notes
kylebaron Mar 18, 2024
3289aaf
fill out glossary interaction
kylebaron May 3, 2024
9761d29
fix some check issues
kylebaron May 20, 2024
4681e4e
adding Rd file
kylebaron May 21, 2024
442b082
refactor as_glossary
kylebaron May 21, 2024
d33af79
tweak documentation and tests
kylebaron May 21, 2024
7e0f697
tweak test message
kylebaron May 21, 2024
f8cdbd7
update docs
kylebaron May 22, 2024
d9de721
patch parser for spaces and comments
kylebaron May 31, 2024
37d2fb1
add tests for spaces, escaped comment and braces in comment
kylebaron May 31, 2024
55ec404
drop labels argument; users can use all_of() instead
kylebaron May 31, 2024
92530ee
append new line
kylebaron May 31, 2024
14aa478
drop $ method; allow for zero-lenghth object in print method
kylebaron May 31, 2024
e55e792
update methods for [ and c
kylebaron May 31, 2024
0a4a223
fix glossary_notes.list arguments; add tests
kylebaron May 31, 2024
89bde6a
check coverage
kylebaron May 31, 2024
2521b79
Merge branch 'main' into glossary
kylebaron May 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Collate:
'data_inventory_table.R'
'demographics-table.R'
'discrete_table.R'
'glossary.R'
'knit-dependencies.R'
'preview-standalone.R'
'preview.R'
Expand Down
19 changes: 19 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
# Generated by roxygen2: do not edit by hand

S3method("[",glossary)
S3method(as.data.frame,glossary)
S3method(as.list,digits)
S3method(as.list,glossary)
S3method(as.list,glossary_entry)
S3method(as.panel,"NULL")
S3method(as.panel,character)
S3method(as.panel,quosures)
S3method(as.panel,rowpanel)
S3method(as_stable,pmtable)
S3method(as_stable,stable)
S3method(as_stable,stobject)
S3method(c,glossary)
S3method(glossary_notes,character)
S3method(glossary_notes,glossary)
S3method(glossary_notes,list)
S3method(names,stobject)
S3method(new_names,character)
S3method(new_names,list)
S3method(new_names,quosures)
S3method(new_names,rowpanel)
S3method(print,digits)
S3method(print,glossary)
S3method(print,glossary_entry)
S3method(print,st_caption)
S3method(print,stable_data)
S3method(print,stobject)
Expand All @@ -38,6 +48,7 @@ export(.cols)
export(as.caption)
export(as.panel)
export(as.span)
export(as_glossary)
export(as_lscape)
export(as_stable)
export(cat_data)
Expand All @@ -59,6 +70,7 @@ export(digit1)
export(ensure_parens)
export(find_bq_col)
export(get_stable_data)
export(glossary_notes)
export(is.colgroup)
export(is.colsplit)
export(is.rowpanel)
Expand All @@ -80,8 +92,10 @@ export(pt_data_study)
export(pt_demographics)
export(pt_wrap)
export(ptdata)
export(read_glossary)
export(rnd)
export(rowpanel)
export(select_glossary)
export(sig)
export(st2article)
export(st2doc)
Expand Down Expand Up @@ -122,6 +136,7 @@ export(st_notes)
export(st_notes_app)
export(st_notes_conf)
export(st_notes_detach)
export(st_notes_glo)
export(st_notes_rm)
export(st_notes_str)
export(st_notes_sub)
Expand Down Expand Up @@ -155,6 +170,7 @@ export(tab_spanners)
export(tex_bold)
export(tex_it)
export(triage_data)
export(update_abbrev)
export(yaml_as_df)
importFrom(assertthat,assert_that)
importFrom(assertthat,validate_that)
Expand Down Expand Up @@ -204,17 +220,20 @@ importFrom(purrr,walk)
importFrom(rlang,":=")
importFrom(rlang,.data)
importFrom(rlang,.env)
importFrom(rlang,abort)
importFrom(rlang,as_string)
importFrom(rlang,enquo)
importFrom(rlang,enquos)
importFrom(rlang,env_clone)
importFrom(rlang,expr)
importFrom(rlang,have_name)
importFrom(rlang,is_atomic)
importFrom(rlang,is_empty)
importFrom(rlang,is_named)
importFrom(rlang,quo_get_expr)
importFrom(rlang,sym)
importFrom(rlang,syms)
importFrom(rlang,warn)
importFrom(stats,median)
importFrom(stats,na.omit)
importFrom(stats,rnorm)
Expand Down
4 changes: 2 additions & 2 deletions R/AAAA.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#' @importFrom tidyr complete
#' @importFrom forcats fct_inorder
#' @importFrom rlang sym syms quo_get_expr as_string := .data .env is_empty
#' @importFrom rlang enquo enquos is_named is_atomic have_name
#' @importFrom rlang env_clone
#' @importFrom rlang enquo enquos expr is_named is_atomic have_name
#' @importFrom rlang env_clone abort warn
#' @importFrom glue glue
#' @importFrom tibble tibble as_tibble is_tibble
#' @importFrom stats median rnorm sd na.omit setNames update
Expand Down
Loading