Skip to content

Commit

Permalink
Pre-release tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hughjonesd committed Dec 9, 2023
1 parent 4b0c0ee commit 63fd609
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions build-cran.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ system("touch inst/doc/*")
# Ensure there's a vignette index in build/vignettes.rds
# NB NOT Meta/vignettes.rds! devtools::build_vignettes() will put it there,
# you can move it
system("mv meta/vignette.rds build")
system("rmdir meta")
system("mv Meta/vignette.rds build")
system("rmdir Meta")
# Build a version for CRAN:
pkgbuild::build(clean_doc = FALSE, manual = TRUE, vignettes = FALSE)
# Check you have build/vignettes.rds in the tarfile
Expand Down
2 changes: 1 addition & 1 deletion man/dplyr-verbs.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/huxtable-news.Rd

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

18 changes: 9 additions & 9 deletions vignettes/huxtable.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ library(knitr)
library(dplyr)
library(huxtable)
options(
huxtable.latex_use_fontspec = TRUE, #!CRAN
# huxtable.latex_use_fontspec = TRUE, #!CRAN
huxtable.knit_print_df = FALSE,
huxtable.add_colnames = TRUE # needed when run by testthat
)
is_latex <- guess_knitr_output_format() == "latex"
# is_latex <- TRUE # !CRAN
knitr::knit_hooks$set( # !CRAN
barrier = function(before, options, envir) { # !CRAN
if (! before && is_latex) knitr::asis_output("\\FloatBarrier") # !CRAN
} # !CRAN
) # !CRAN
if (is_latex) knitr::opts_chunk$set(barrier = TRUE) # !CRAN
# # is_latex <- TRUE # !CRAN
# knitr::knit_hooks$set( # !CRAN
# barrier = function(before, options, envir) { # !CRAN
# if (! before && is_latex) knitr::asis_output("\\FloatBarrier") # !CRAN
# } # !CRAN
# ) # !CRAN
#
# if (is_latex) knitr::opts_chunk$set(barrier = TRUE) # !CRAN
```

Expand Down

0 comments on commit 63fd609

Please sign in to comment.