Skip to content

Commit

Permalink
tweak build script
Browse files Browse the repository at this point in the history
  • Loading branch information
hughjonesd committed Feb 8, 2024
1 parent 98abf4f commit afb526f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build-cran.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ system2('git', c('push', '--tags'))
devtools::release()

# Alternatively:
# Uncomment !CRAN lines in huxtable vignette
# Uncomment !CRAN lines in huxtable vignette and save
system("mkdir -p inst/doc")
devtools::build_vignettes()
# Copy built vignettes from doc/ to inst/doc:
system("cp doc/* inst/doc")
# Comment out !CRAN lines in huxtable vignette,
# and save (in inst/doc and vignettes?)
# Comment out !CRAN lines in huxtable vignette and save
# copy to inst/doc:
system("cp vignettes/huxtable.Rmd inst/doc")
# Do this to avoid R CMD check spotting newer files in vignettes than inst/doc:
system("touch inst/doc/*")
Expand All @@ -95,7 +95,7 @@ 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
system("tar -ztvf ../huxtable_x.y.z.tar.gz | grep build")
system("tar -ztvf ../huxtable_5.5.4.tar.gz | grep build")
# Submit via web form. (You could also run through the devtools::release()
# questions just to be safe!)

Expand Down

0 comments on commit afb526f

Please sign in to comment.