Skip to content

Commit

Permalink
version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
sda030 authored and cran-robot committed Feb 29, 2024
1 parent 98e4568 commit d8e6b32
Show file tree
Hide file tree
Showing 81 changed files with 7,443 additions and 7,311 deletions.
8 changes: 4 additions & 4 deletions DESCRIPTION
@@ -1,7 +1,7 @@
Type: Package
Package: saros
Title: Semi-Automatic Reporting of Ordinary Surveys
Version: 1.0.1
Version: 1.0.4
Authors@R: c(
person(given = "Stephan",
family = "Daus",
Expand Down Expand Up @@ -41,16 +41,16 @@ SystemRequirements: Quarto command line tools
Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.0
RoxygenNote: 7.3.1
Language: en-US
Config/Needs/website: rmarkdown
Config/testthat/parallel: true
Config/testthat/start-first: refine_chapter_overview
NeedsCompilation: no
Packaged: 2024-01-25 08:55:25 UTC; py128
Packaged: 2024-02-28 21:52:43 UTC; py128
Author: Stephan Daus [aut, cre, cph] (<https://orcid.org/0000-0003-0230-6997>),
Nordic Institute for The Studies of Innovation, Research and Education
(NIFU) [fnd],
Kristiania University College [fnd]
Repository: CRAN
Date/Publication: 2024-01-26 11:30:02 UTC
Date/Publication: 2024-02-29 01:10:02 UTC
158 changes: 80 additions & 78 deletions MD5
@@ -1,54 +1,54 @@
5bff7bdee3880ece6500620888715578 *DESCRIPTION
20c8c0b12330db5ff21d98826f5f9c59 *DESCRIPTION
36e8de1ce194edb481fc71bb92536be3 *LICENSE
650eb8ebf767a62e3f1115f2205f09b4 *NAMESPACE
af79835aea219715c885d645c28e8efd *NEWS.md
87c0aa5d0d8e28acd88e494cff72cef5 *R/add_attributes_unfinished.R
c6be4df3961883bd66a396acc5dd5a15 *R/add_caption_attribute.R
286c3124256202c12b468c82f44da68d *R/add_section_heading_line.R
6b61692361548dc7913b6e05aff80790 *R/argument_validation_and_insertion.R
02b122894689b72c68d83b85eb7c26fd *NEWS.md
e7d0b77d6e293c07d2087612def894e1 *R/add_attributes_unfinished.R
2dbf2e68e50f70636f9b0947405726c7 *R/add_caption_attribute.R
97d5b97352c97eacad7d5b27ba9e972d *R/add_section_heading_line.R
f74606f2eb4f417b889529b104128730 *R/argument_validation_and_insertion.R
2fef658afca4b673acc4fe55e1289d9f *R/attach_chapter_dataset2.R
dfadec28ff72d28b336c70fd0018c1bb *R/attach_indep.R
2d098a6c5ae644cb08c74d5c29ee28a8 *R/attach_indep.R
9f8ea03ec9c7736825b865b35aa0d888 *R/attach_new_output_to_output.R
c5efd5d2dd82a15a3de5b2097286df47 *R/cat_freq_plot_html.R
beec88374ddfff1066c49bd760ecff88 *R/cat_prop_plot_html.R
f95fda689995099b1829599370e86ed1 *R/cat_table.R
e700086e01a0dd0493f776af7ca2e791 *R/cat_freq_plot_html.R
ebaa7eada9aa741b50a045a39bb4f8fc *R/cat_prop_plot_html.R
790a5f7e55a9ed6b8505f49c43643d3c *R/cat_table.R
bfbda4eeaebf33d6ff05c267ab341506 *R/check_duplicates_in_data_overview.R
5c27fca19d233e466ce7c021a42b11f9 *R/checks.R
e150f55c934424aabc0b46ca681fd746 *R/chr_table.R
71a1bdac9abfd0edda9d822aee6e33ea *R/colour.R
bd2f86bdd4941c0a3520f6c24d89b26b *R/crosstable3.R
daa4de77e7c8b93c70e715ea669312c5 *R/checks.R
4c990ea05af435805c4deb088437ba9a *R/chr_table.R
68e541709cedc26bedcaa1fe9778ad6d *R/colour.R
8e26c1b37b03a47b5a73eb3f3b87f6a6 *R/crosstable3.R
c3ae1d9db2a6514620bc73e548fb5a38 *R/data.R
342573e6c6d7bd6242d42564627c537e *R/data_overview.R
48b9d905e8920759986ee1415976eaad *R/default_draft_report_arguments_in_yaml.R
42e997ad62b0d6a429eb2363178ccd15 *R/draft_report.R
50467c723bb436cc192df797d7a1fec8 *R/embed_cat_freq_plot_docx.R
9803e21b6cc67bab6139632e9c70d256 *R/embed_cat_prop_plot_docx.R
261490981a9af5005d2f051060d51881 *R/data_overview.R
00e97bc5051c91dbc44765e47026702f *R/default_draft_report_arguments_in_yaml.R
eeecee1daa6edbded0aadc137de9bda4 *R/draft_report.R
e2f2341db9b9fae0e31071c1af14dedd *R/embed_cat_freq_plot_docx.R
3c8e7cc38fffdbcc35d8817599616152 *R/embed_cat_prop_plot_docx.R
bf7b3aaa78754396dbec9ebfd4a68548 *R/estimate_plot_height.R
46f3a89a5a1802cb1ec0a9559ddecf63 *R/filename_sanitizer.R
4404a557418eb1cadb9e98bba57570a2 *R/filename_sanitizer.R
b07e6cd8dd4ffab4dd822678db04776a *R/find_stat_test.R
7d0fb7cadc78c65e1f3424030dd59233 *R/flexi.R
e4fc359c93029dae8342508739b580a2 *R/gen_default_report_yaml.R
b549bf2c148be465825f5e03b1588bd5 *R/gen_element_and_qmd_snippet2.R
8eb8ef41a0decbf03a1a9f9c5f084ac1 *R/gen_heading_line.R
1b0127b376cbeb97ac98761abce932ad *R/gen_inner_section.R
d49b173de8686bcbd792a49d76d0c0ad *R/gen_micro.R
54c05cca955df4b4598da2db35ec85a4 *R/gen_qmd_chapters.R
0e027da41a7d86c412a3bc37876f8853 *R/gen_qmd_index.R
75db90fa16c3fe71d98920b88717f97a *R/gen_heading_line.R
aa9e7eecf17ab2ddb3995fe87519fe1b *R/gen_inner_section.R
2f5b6810a4c63002e5ca30fdd2ce447b *R/gen_micro.R
5b7a68063641a5ac8d7f302cd1929316 *R/gen_qmd_chapters.R
7b537932ac446f91371a41ce893603d3 *R/gen_qmd_index.R
97e10cccf33bf61114eebca7163a078f *R/gen_qmd_structure2.R
374b61eb6fcdb1966237d4b0e7407d95 *R/gen_within_chapter_structure.R
c48ee7e34dd3a2e50f67993425813680 *R/gen_within_chapter_structure.R
3e2c6bc4072ea58216c2e44640d745e0 *R/get_common_levels.R
9c015f9daff72e66b61ccbc8f5aa8399 *R/get_common_name.R
2ced781045bf24db2fb8df146725a44d *R/globals.R
ccb65344aa8ca78eac0640ba8c5134d4 *R/handpick.R
7110ff00a8140839808edb591d696ee9 *R/globals.R
a711b043c19247aa1867c1196d7a94d8 *R/handpick.R
61550b163333d29d9bfa76b81713cbf1 *R/initialize_and_configure.R
ab24bd22383bdf91b2531838d0f14417 *R/insert_obj_in_qmd.R
f3cffc9a08ee3deb51251df4424da07e *R/insert_qmd_tablet_tailored_order.R
7ed79efde1e4bbeb19ce902a04e5d573 *R/int_plot.R
048955f4f46a9cc8609ee6d458d93bf6 *R/log_unused_variables.R
53d2bcd977b80a28f2054cdbba606782 *R/make_filename_prefix.R
5d17d223db66a5170ea3b23014e434fd *R/insert_obj_in_qmd.R
f0b62d52e041212101937c787607148f *R/insert_qmd_tablet_tailored_order.R
083b2e2c3b2d8ab5ec6bde5e6b9c2eaf *R/int_plot.R
a2e9f4ded684d002e34b9e23746f7809 *R/log_unused_variables.R
97f9d4182731c378e649256bacbd557b *R/make_filename_prefix.R
b45ed77bd60bbbdd4b5002420ec16b8e *R/make_filenames_list.R
50467c723bb436cc192df797d7a1fec8 *R/prep_cat_freq_plot_docx.R
2417eed7b69f93a92604fd55be607324 *R/prep_cat_prop_plot_docx.R
ed80ccfdce5f2417035905fac918aef3 *R/prep_cat_freq_plot_docx.R
58af78f4010be76179bab74513038c90 *R/prep_cat_prop_plot_docx.R
547aed8d6487cf89053eb91d41cf1023 *R/prepare_chunk.R
4b169eafcf10f632cbf6c83422e20f1e *R/prepare_chunk.bi_catcat_prop_plot.R
5781e5a6a29ed959cd023c7578aadea0 *R/prepare_chunk.bi_catcat_table.R
Expand All @@ -59,50 +59,50 @@ c75cb0acea3114e7d9d0569eded84813 *R/prepare_chunk.bi_sigtest.R
861dee6bd20ee4b193802ea34a65ae88 *R/prepare_chunk.uni_cat_text.R
c6451b8cda6abfcc712ad21df84a29e8 *R/prepare_chunk.uni_chr_table.R
a41cd7c15c0cad81bcc15bff2a529d70 *R/pretty_tabular.R
f29191358ee384bf14a3113471b801f4 *R/process_yaml.R
3ba65212a4f6fa649f0377ac260d7f1a *R/process_yaml.R
611ef9ea32fe36301386f92bfd383127 *R/pull_uniques.R
8a8c307e1f94584485328129bce3704d *R/qmd_replace_docx_imgs_with_mscharts.R
18eca1ef584908dde4d6dc65bd255add *R/qualtrics.R
1f46ce5b4f5ab7bc90f3e8a89216bc46 *R/remove_empty_col_for_mesos_group.R
deeca5b563a8fac9648eaf6aca486cd9 *R/remove_label_part.R
e4d6192381b8b292d44deb89a5165ac8 *R/qualtrics.R
cd50cf9bf83c27ee51536352d3b021f6 *R/remove_empty_col_for_mesos_group.R
85cc99316d9d938434ed1c51b3598cb3 *R/remove_label_part.R
abcb06e92a7a74758d23bb25d4287d7f *R/remove_non_significant_bivariates.R
0ad82c5835b5739ce9d1f357c5ba9111 *R/rename_by_labels.R
05e1718f4db7359bc78935b089a29c24 *R/render.R
a6e224777511fc217d3c32728c13e5dd *R/render_full_reports.R
99e696e163adcc4e98aac19fd1047b6e *R/replace_stata_labels.R
56a67b7a30197118aa6b0b9ab201efcb *R/rename_by_labels.R
27331bf608067dac08cf591877394b77 *R/render.R
a539ad38c1bcbfc09d2e74ed95a9c550 *R/render_full_reports.R
d100b9f61f0595add681bbd253c3a5a4 *R/replace_stata_labels.R
c854c44dceb786bb2031f5812677ede4 *R/run_on_build.R
3bdd89e4c763afbc99cbd96fff701d50 *R/serialization.R
a999c4e3469531aa9db75876b54198dd *R/setup_access_restrictions.R
7ba6ce7a56d44e4fa10a162a0901c887 *R/setup_access_restrictions.R
162fe6a2a337a99bc69df6f9ce20483a *R/sigtest2.R
777fde20c622a0afeae24d0a4a8e2f52 *R/summarize_data.R
892046965319c3280953a932978d56ac *R/summarize_data.R
b5046b3b0958521138b116e10b92d422 *R/text.R
6b78769a884dca5db6784b2f2fcf1867 *R/ungroup_data.R
b0fa97635c973cc447728c85ab86a7fd *R/update_dots.R
adc33291ebe72c25dab30bcfc42b9169 *R/utils.R
42230b10b70292c938522aa65b73073f *R/utils_labels.R
a672d58174ad5bec71c71365377305b8 *R/update_dots.R
b44ef525ed5b6a4e558e6a894b3b45c7 *R/utils.R
ee616fcf90e82814a0d51e678a71624d *R/utils_labels.R
c90fb3917c94d79c84cc75b907234166 *R/utils_office.R
80892fa1dfef744530ec34b14385138d *R/utils_qmd.R
2abb023e2be2acde9b23396dd1586c2a *R/utils_qmd.R
81051bcc2cf1bedf378224b0a93e2877 *R/validate_chapter_overview.R
bef58baa725ab9e14fcc638ce45f8903 *data/ex_survey.rda
4d8ab4ba4064992ce2b419eb68098f08 *data/ex_survey_ch_overview.rda
a484b320d341b22f6e3cfa5918a0e62d *inst/CITATION
1b76d1c57dfc872c1db162f43538dbaf *inst/WORDLIST
b71a7a963f514dfa2d7a10eff33c46a2 *inst/WORDLIST
56cab84a9f34b34b8a099653e1522117 *inst/extdata/ex_survey.RDS
b925cbecd9faa039611d5d30013b3ea1 *inst/extdata/ex_survey_ch_overview.RDS
f5bcb560a6033b1bef9811513f748b52 *inst/extdata/stopwords-iso.json
df3608ff344b8c3207abd07fb39819cf *inst/rstudio/addins.dcf
45111cd8497ac569a3bb4316c7646c20 *man/attach_qualtrics_labels.Rd
9c695b7e9dd0839cde2dc7bae6781a7a *man/attach_qualtrics_labels.Rd
78c33b3e19da434db805d0120300c142 *man/center_string.Rd
407b418dc761ed3c6dc7d2320a8c1db0 *man/col_to_binaries.Rd
a2a7cdd8c88597d4318de4d4816eba32 *man/combn_upto.Rd
0ceecf090bf4c7cd4d9278d98269d5cc *man/create_caption.Rd
ae660f4312bd92f950159d7cc49f263a *man/create_email_credentials.Rd
729fe74cda53982f6183068f507bbb00 *man/crosstable3.Rd
6ab72298d077f4482029ae82f0206c25 *man/draft_report.Rd
d5aa4001ed98cfdd6f376ae940b9f30d *man/embed_cat_freq_plot.Rd
cb3ee053649859e042c9ea05a8c0c775 *man/embed_cat_freq_plot_docx.Rd
7a8c11a8b9368c0943767e8066e5cfa1 *man/embed_cat_prop_plot.Rd
75560ae567057309fc669afbe1290333 *man/embed_cat_prop_plot_docx.Rd
11141ce4eaab4005bfb19b0e4d418d3a *man/draft_report.Rd
bf3b6c979873c3eea3338ed30c6a8f0c *man/embed_cat_freq_plot.Rd
1ec02063f6bd5dc095f0fbe1b0f07b20 *man/embed_cat_freq_plot_docx.Rd
68b34ad6c7588350ad9d85617477224c *man/embed_cat_prop_plot.Rd
1a3e005b7a58951422d32ba60f822e14 *man/embed_cat_prop_plot_docx.Rd
057c0ab9ded0a8a42ef63cfe6b387cb1 *man/embed_cat_table.Rd
c358a7f5e8bbde8848e3ee1bad3faefc *man/embed_cat_text_html.Rd
23e9521e575946cbac1f3b00fe547186 *man/embed_chr_table_html.Rd
Expand All @@ -120,40 +120,41 @@ c3978703d8f40f2679795335715e98f4 *man/figures/lifecycle-experimental.svg
1fff432bc1d63581970f0ee47bb29939 *man/filename_sanitizer.Rd
4e555061edac54c6a924dbd88e2cd39c *man/gen_element_and_qmd_snippet2.Rd
2f3c21949a8787b960ef715e56c8b3bd *man/gen_qmd_chapters.Rd
329b94fec8b48d7752ea8948aab4b804 *man/gen_qmd_index.Rd
b1c5213a5339ebd88c7d6037819e0663 *man/gen_qmd_index.Rd
f9e41e9d678fb82195c9eb84405c46ca *man/get_colour_palette.Rd
18209ec586ef48cbeb49a887d20fa524 *man/get_colour_set.Rd
7d36637834f9da1d2a9645d5d09d0c9e *man/get_data_label_opts.Rd
2153c6bbf32d007d74c91ab609d073fa *man/handpick.Rd
dacbeec4a1a1c97567401864e30b5900 *man/handpick.Rd
7c103b4dbdcba1d6031629b8f9981add *man/hex_bw.Rd
7d4d5251788df8f1f695228800332c2c *man/is_colour.Rd
78690d1314e58a17f314587632140b6e *man/list_available_element_types.Rd
803ba58e16f4cd9322a79ee5d6a201e9 *man/omitted_recoder_df.Rd
7faaa6e9516de91fa1d071035bd8cd0b *man/list_available_element_types.Rd
31988490e2bdf76aa3af6873db755de6 *man/omitted_recoder_df.Rd
40af2ae5733f9d8360b7ab57f719f895 *man/post_render_docx_img_replacer.Rd
71fc3148f26806c19503f82996a3a5f8 *man/prep_cat_freq_plot_docx.Rd
f5f3606fe2eb4aaa77fc321e73bc3d5c *man/prep_cat_freq_plot_docx.Rd
5274d6cf2784a684797bc151aefcf452 *man/prep_cat_freq_plot_html.Rd
1ea7e621c09b0447f629fd3979891d55 *man/prep_cat_prop_plot_docx.Rd
dfe3311fba9739194ea443070ec6b7bc *man/prep_cat_prop_plot_docx.Rd
fe3d381caba5a55f25d06224c9591ec4 *man/prep_cat_prop_plot_html.Rd
9c6615840059809b2cbfa0bed1a59afa *man/prepare_chunk.Rd
89c3777ef6651e5b2fe2ebcabecb696b *man/prepare_safe_render.Rd
d490b99ce6f655ef04af8eadd339b553 *man/prepare_safe_render.Rd
8f50d75886ad171572b4c93de82dea8f *man/quarto_render_saros.Rd
0186322d0d9a5471d11ae194d59b95c6 *man/read_default_draft_report_args.Rd
e385c7911ec2ba309d812afab087b720 *man/refine_chapter_overview.Rd
44cfcc624633c4e6e066e8c263bfeb96 *man/read_default_draft_report_args.Rd
fa8f6dd951ea1b4d20610b81d396b948 *man/refine_chapter_overview.Rd
2db920b62b3f0f7e187f46a8f3323360 *man/remove_label_parts.Rd
95afdd87f67d4f2d066fc4c885089832 *man/remove_special_chars_in_labels.Rd
ff064d45d86631d3b46c198404687537 *man/rename_by_labels.Rd
891fb1973a2f22263c915d0402683011 *man/render_full_reports.Rd
e9d532308dbc8d363bf32ad23e8b6aaa *man/render_full_reports.Rd
6da7238a3cb33bc423f277baedb0d0c9 *man/replace_docx_imgs_with_mscharts.Rd
fe24222e56be39cfec043a986a0f2d23 *man/replace_stata_labels.Rd
dbd128b0ef8974fd38602fc2c5fa9037 *man/sanitize_labels.Rd
2658033e1b81b81f36242511c879f0b8 *man/setup_access_restrictions.Rd
4bdca24addb138a4d72b9d2f8f81f0c8 *man/sanitize_labels.Rd
b6a35150d13db1f47908013f663379dd *man/setup_access_restrictions.Rd
8677e2a2db87f8317bfb22a573504315 *man/subset_vector.Rd
5c79ac85a40b1ddb80a11374ba16831c *man/summarize_data.Rd
3c6a1c06bcf519b401d4192100e0005d *man/swap_label_colnames.Rd
55bf4d44a7645c8b9e84bf971d2c2442 *man/write_default_draft_report_args.Rd
8a2ecdc1e737783b6aa732c83299e086 *man/write_default_draft_report_args.Rd
332173f20d20942c02019350ea4dcadc *tests/spelling.R
b152c5405377ce5bee91802a8667164b *tests/testthat.R
f7016920baac28838d81d761d2130b6c *tests/testthat/test-argument_validation_and_insertion.R
e8f0f6ea13cf468865f2285d684d68a1 *tests/spelling.Rout.save
155f419dcb358d3d89cf0deee9c3eac4 *tests/testthat.R
d023c56cc525b69f1bd20c867cc672ab *tests/testthat/test-argument_validation_and_insertion.R
24cbd1f1ace5c2bbcec159a37a6e919b *tests/testthat/test-attach_new_output_to_output.R
c19fe364b9c94f669028a819c99ccefd *tests/testthat/test-cat_plot_docx.R
acb7875e1735a8b9b4ea8278cabf4201 *tests/testthat/test-cat_table_docx.R
Expand All @@ -162,16 +163,17 @@ acb7875e1735a8b9b4ea8278cabf4201 *tests/testthat/test-cat_table_docx.R
0f3ae44d2f1238ad65d5a9ff27598974 *tests/testthat/test-colour.R
f4839af2f18b455e40b58c26de359d1c *tests/testthat/test-crosstable2.R
6f03d5f00a547d29ca849d36ad017c73 *tests/testthat/test-data_overview.R
8159ed9c1f163acd7f2509703326cfe2 *tests/testthat/test-draft_report.R
4481eca2737a357b8cb34e03138eb167 *tests/testthat/test-draft_report.R
2154ffe6c9d49458c88b7375b5602054 *tests/testthat/test-filename_sanitizer.R
473a1af9c5d0a3c983ea2c4b75f9a406 *tests/testthat/test-gen_qmd_index.R
b48094993a19c995f1c11eab2bf265fd *tests/testthat/test-gen_qmd_index.R
85233c31b25b216089e0bee73d9bef89 *tests/testthat/test-get_common_name.R
885810ade97adb27a4cfe8ab4683956d *tests/testthat/test-make_filenames_list.R
36858852ec1fe17547c800df893f3156 *tests/testthat/test-prepare_chunk.R
507f1dc8df4c315cdfd428a8ce2b48dd *tests/testthat/test-pull_uniques.R
16478005da3cde001a8cff8c981a23b3 *tests/testthat/test-rename_by_labels.R
cebf7cd52769accbecf62ecc69c6a911 *tests/testthat/test-summarize_data.R
f2b6d337fbffbb25f6fa6dcdd8a8ae86 *tests/testthat/test-rename_by_labels.R
b613e40d3b21afe1ec42b59fbb87571c *tests/testthat/test-setup_access_restrictions.R
ada51905956fa8f2732cf0dba7866af6 *tests/testthat/test-summarize_data.R
b8a6626d3f0bf3b889ff04bfdfdaf025 *tests/testthat/test-text.R
f85c43f8a0baf5379906193ca5505e90 *tests/testthat/test-ungroup_data.R
74d443ae65c78da5a1831d76b1215b15 *tests/testthat/test-utils.R
cf49c4be8d2593903c519fa1f72efb21 *tests/testthat/test_omitted_recoder.R
33a00ebb36e5d34a6937dcbaad320cb1 *tests/testthat/test-ungroup_data.R
caddd527bc9cb701de32de7ac2ea0c01 *tests/testthat/test-utils.R
8782b4e337c4f37616e9c908e549e7d7 *tests/testthat/test_omitted_recoder.R
16 changes: 16 additions & 0 deletions NEWS.md
@@ -1,3 +1,19 @@
<!-- NEWS.md is maintained by https://cynkra.github.io/fledge, do not edit -->

# saros 1.0.3

- Added more arguments for plot text sizes, with more useful defaults for Word and HTML layouts.
- `attach_qualtrics_labels` is now more flexible.
- Minor fix in `sanitize_labels`.
- Internal change to accommodate ggplot2 3.5.0.
- Improved performance for argument validation checks.
- `setup_access_restrictions` now accepts NULL password input.
- `setup_access_restrictions` now can warn instead of error if `rel_parent_path` does not exist.
- `sort_by` now correctly sorts with `descend=TRUE` for ".upper", etc.
- Fixed `list_available_element_types`
- Set one long-running test for `draft_report` to only run on maintainer's local computer.
- `sanitize_labels` now has option to translate ASCII HTML-escaped characters to unicode.

# saros 1.0.1

* Minor fixes for CRAN manual review
Expand Down
4 changes: 2 additions & 2 deletions R/add_attributes_unfinished.R
Expand Up @@ -9,7 +9,7 @@
#
#
# ## cat_*_plot
# if (!rlang::is_null(dots$label_separator)) {
# if (!is.null(dots$label_separator)) {
# by_label <- unname(get_raw_labels(data = data, col_pos = indep_pos))
# attr(chart, "saros_caption") <-
# get_raw_labels(data = data, col_pos = dep_pos) %>%
Expand Down Expand Up @@ -37,7 +37,7 @@
# unique()
# } else by_label <- character(0)
# attr(table, "saros_caption") <-
# if(!rlang::is_null(dots$label_separator)) {
# if(!is.null(dots$label_separator)) {
# add_caption_attribute(
# main_question = main_question,
# data_out = data_out,
Expand Down
4 changes: 2 additions & 2 deletions R/add_caption_attribute.R
Expand Up @@ -16,7 +16,7 @@ create_caption <- function(main_question,
filepath = NULL,
translations = NULL) {

if(rlang::is_null(translations)) translations <- eval(formals(draft_report)$translations)
if(is.null(translations)) translations <- eval(formals(draft_report)$translations)

N <-
data_out %>%
Expand All @@ -30,7 +30,7 @@ create_caption <- function(main_question,
n_equal_suffix <- translations$n_equal_suffix
by_breakdown <- if(length(indep_pos)>0) translations$by_breakdown
by_text <- if(length(indep_pos)>0) create_text_collapse(indep_pos, last_sep = translations$last_sep)
if(rlang::is_character(mesos_group)) {
if(is.character(mesos_group)) {
mesos_group <- create_text_collapse(mesos_group, last_sep = translations$last_sep)
mesos <- stringi::stri_c(translations$mesos_group_prefix,
mesos_group,
Expand Down
2 changes: 1 addition & 1 deletion R/add_section_heading_line.R
Expand Up @@ -19,7 +19,7 @@ add_section_heading_line <- function(

heading <-
stringi::stri_c(strrep("#", times = level), " ", heading,
"{#sec-", conv_to_valid_obj_name(value), "_",
"{#sec-", conv_to_valid_obj_name(value), "-",
stringi::stri_c(sample(0:9, size=2, replace = TRUE), ignore_null=TRUE, collapse=""),
"}\n",
ignore_null=TRUE)
Expand Down

0 comments on commit d8e6b32

Please sign in to comment.