File: dh_vignette

package info (click to toggle)
dh-r 20161219
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 76 kB
  • ctags: 32
  • sloc: perl: 362; sh: 7; makefile: 2
file content (11 lines) | stat: -rwxr-xr-x 374 bytes parent folder | download | duplicates (2)
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