/usr/bin/dh_vignette is in dh-r 20180403.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh -e
# Build and install R vignettes, for use with dh --buildsystem R
mkdir -p inst/doc
LC_ALL=C R --no-save <<EOR
tools::buildVignettes(dir=".", tangle=TRUE, quiet=TRUE)
v <- tools::pkgVignettes(dir=".", output=TRUE, source=TRUE)
f <- c(v[["outputs"]], v[["docs"]], unlist(v[["sources"]], use.names=FALSE))
invisible(file.copy(f, "inst/doc"))
EOR
|