Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Improvements for users
* Default behavior of `create_visc_project()` no longer includes creation of package-specific files DESCRIPTION and NAMESPACE (#306)
* Add option to drop SCHARP logo in PDF output (#312)
* Add `visc_load_pdata()` examples to report template skeleton (#327)
* Reproducibility table formatting changes to coordinate with recent VISCfunctions update that lengthens reproducibility packages table to include packages that are loaded but not attached (#329)
* Reproducibility table formatting changes to coordinate with recent VISCfunctions update that lengthens reproducibility packages table to include packages that are loaded but not attached (#329, #332)

Improvements for package contributors and maintainers

Expand Down
11 changes: 8 additions & 3 deletions inst/templates/visc_empty/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,14 @@ if (output_type == 'latex') {

# format nicely for PDF with kable and kableExtra
my_session_info$packages_table %>%
kable(booktabs = TRUE, linesep = "", caption = tbl_caption, longtable = TRUE) %>%
kable_styling(latex_options = 'repeat_header')

kable(
booktabs = TRUE, linesep = "", caption = tbl_caption, longtable = TRUE
) %>%
kable_styling(
latex_options = 'repeat_header',
repeat_header_method = 'replace'
)

} else {

# format nicely for Word with flextable
Expand Down
17 changes: 11 additions & 6 deletions inst/templates/visc_report/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -444,19 +444,24 @@ if (output_type == 'latex') {
tbl_caption <- "Package reproducibility information"

if (output_type == 'latex') {

# format nicely for PDF with kable and kableExtra
my_session_info$packages_table %>%
kable(booktabs = TRUE, linesep = "", caption = tbl_caption, longtable = TRUE) %>%
kable_styling(latex_options = 'repeat_header')

kable(
booktabs = TRUE, linesep = "", caption = tbl_caption, longtable = TRUE
) %>%
kable_styling(
latex_options = 'repeat_header',
repeat_header_method = 'replace'
)

} else {

# format nicely for Word with flextable
my_session_info$packages_table %>%
flextable() %>%
set_caption(tbl_caption)

}
```

Expand Down