Skip to content

Commit 5e43e61

Browse files
committed
Converted vignette to 'pdfpages' wrapped premade one
1 parent a07170e commit 5e43e61

17 files changed

+44
-9
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ inst/papers
1212
^local
1313
^\.github
1414
^\.editorconfig
15+
^vignettes/rmd

ChangeLog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
2025-03-23 Dirk Eddelbuettel <[email protected]>
2+
3+
* vignettes/rmd/: Moved from directory above, new directory is not
4+
included in source package to minimize CTAN dependencies at build
5+
* vignettes/rmd/Makefile: New Makefile governing build and copy
6+
* vignettes/pdf/RcppZiggurat.pdf: New pre-made pdf
7+
* vignettes/RcppZiggurat.Rnw: New 'pdfpages' wrapper vignette
8+
* DESCRIPTION: Adjusted shortening Suggests by three
9+
* cleanup: Adjusted paths
10+
* .Rbuildignore: Idem
11+
112
2025-03-22 Dirk Eddelbuettel <[email protected]>
213

314
* DESCRIPTION (Version, Date): Release 0.1.7

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Description: The Ziggurat generator for normally distributed random
1616
License: GPL (>= 2)
1717
Depends: R (>= 3.0.0)
1818
Imports: Rcpp, parallel, graphics, stats, utils
19-
Suggests: rbenchmark, microbenchmark, lattice, knitr, rmarkdown, pinp, ggplot2
19+
Suggests: rbenchmark, microbenchmark, lattice, ggplot2
2020
URL: https://github.com/eddelbuettel/rcppziggurat, https://dirk.eddelbuettel.com/code/rcpp.ziggurat.html
2121
BugReports: https://github.com/eddelbuettel/rcppziggurat/issues
22-
VignetteBuilder: knitr
2322
LinkingTo: Rcpp, RcppGSL

cleanup

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/sh
22

33
rm -rvf src/*.o src/*.so src/symbols.rds \
4-
vignettes/auto/ \
5-
vignettes/*.aux vignettes/*.log vignettes/.out \
6-
vignettes/*.bbl vignettes/*.blg vignettes/*.pdf \
7-
vignettes/RcppZiggurat*.tex \
8-
vignettes/*.tpt vignettes/*.xwm \
9-
vignettes/jss.bst vignettes/pinp.cls \
4+
vignettes/auto/ vignettes/rmd/auto/ \
5+
vignettes/rmd/*.aux vignettes/rmd/*.log vignettes/rmd/.out \
6+
vignettes/rmd/*.bbl vignettes/rmd/*.blg vignettes/rmd/*.pdf \
7+
vignettes/rmd/RcppZiggurat*.tex \
8+
vignettes/rmd/*.tpt vignettes/rmd/*.xwm \
9+
vignettes/rmd/jss.bst vignettes/rmd/pinp.cls \
1010
*~ */*~

vignettes/RcppZiggurat.Rnw

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
\documentclass{article}
2+
\usepackage{pdfpages}
3+
%\VignetteIndexEntry{RcppZiggurat-Intro}
4+
%\VignetteKeywords{Ziggurat, random number generator, RNG}
5+
%\VignetteDepends{RcppZiggurat}
6+
%\VignetteEncoding{UTF-8}
7+
8+
\begin{document}
9+
\includepdf[pages=-, fitpaper=true]{pdf/RcppZiggurat.pdf}
10+
\end{document}

vignettes/pdf/RcppZiggurat.pdf

129 KB
Binary file not shown.

vignettes/rmd/Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## This Makefile is not included in the package sources so we can use GNUmake idioms. Yay.
2+
3+
rmdsources := $(wildcard *.Rmd)
4+
rmdvignettes := $(rmdsources:.Rmd=.pdf)
5+
6+
%.pdf: %.Rmd
7+
Rscript -e 'rmarkdown::render("$<")'
8+
Rscript -e 'tools::compactPDF("$@", gs_quality="ebook")'
9+
cp -vax $@ ../pdf
10+
11+
all: ${rmdvignettes}
12+
13+
clean:
14+
@rm -rf *.aux *.log *.out *.pdf pinp.cls jss.bst
File renamed without changes.

vignettes/RcppZiggurat.Rmd renamed to vignettes/rmd/RcppZiggurat.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author:
66
affiliation: a
77
address:
88
- code: a
9-
address: Department of Statistics, University of Illinois at Urbana-Champaign; Champaign, IL, USA. \url{http://dirk.eddelbuettel.com}
9+
address: Department of Statistics, University of Illinois Urbana-Champaign; Champaign, IL, USA. \url{https://dirk.eddelbuettel.com}
1010

1111
lead_author_surname: Eddelbuettel
1212

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)