File: dh_vignette

package info (click to toggle)
dh-r 20230121
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 220 kB
  • sloc: perl: 1,938; sh: 412; makefile: 21
file content (11 lines) | stat: -rwxr-xr-x 380 bytes parent folder | download | duplicates (5)
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.UTF-8 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