| Line 59... |
Line 59... |
| 59 |
if (interactive()) {
|
59 |
if (interactive()) {
|
| 60 |
Rcmd(c("Rd2pdf", Rd2pdf_opts, pkgdir)) == 0L ||
|
60 |
Rcmd(c("Rd2pdf", Rd2pdf_opts, pkgdir)) == 0L ||
|
| 61 |
stop("failed to render from source directory of ", sQuote(pkgname))
|
61 |
stop("failed to render from source directory of ", sQuote(pkgname))
|
| 62 |
|
62 |
|
| 63 |
stopifnot(dir.exists("lib") || dir.create("lib"))
|
63 |
stopifnot(dir.exists("lib") || dir.create("lib"))
|
| 64 |
install.packages(pkgdir, lib = "lib", repos = NULL,
|
64 |
install.packages(pkgdir, lib = "lib", repos = NULL, type = "source",
|
| 65 |
INSTALL_opts = INSTALL_opts)
|
65 |
INSTALL_opts = INSTALL_opts)
|
| 66 |
Rcmd(c("Rd2pdf", Rd2pdf_opts, file.path("lib", pkgname))) == 0L ||
|
66 |
Rcmd(c("Rd2pdf", Rd2pdf_opts, file.path("lib", pkgname))) == 0L ||
|
| 67 |
stop("failed to render from installed ", sQuote(pkgname))
|
67 |
stop("failed to render from installed ", sQuote(pkgname))
|
| 68 |
}
|
68 |
}
|
| 69 |
stopifnot(dir.exists("lib_latex") || dir.create("lib_latex"))
|
69 |
stopifnot(dir.exists("lib_latex") || dir.create("lib_latex"))
|
| 70 |
install.packages(pkgdir, lib = "lib_latex", repos = NULL,
|
70 |
install.packages(pkgdir, lib = "lib_latex", repos = NULL, type = "source",
|
| 71 |
INSTALL_opts = c(INSTALL_opts, "--latex"))
|
71 |
INSTALL_opts = c(INSTALL_opts, "--latex"))
|
| 72 |
Rcmd(c("Rd2pdf", Rd2pdf_opts, file.path("lib_latex", pkgname))) == 0L ||
|
72 |
Rcmd(c("Rd2pdf", Rd2pdf_opts, file.path("lib_latex", pkgname))) == 0L ||
|
| 73 |
stop("failed to render preconverted LaTeX help for ", sQuote(pkgname))
|
73 |
stop("failed to render preconverted LaTeX help for ", sQuote(pkgname))
|
| 74 |
## this failed in R 4.4.[012] due to undefined \inputencoding, but also,
|
74 |
## this failed in R 4.4.[012] due to undefined \inputencoding, but also,
|
| 75 |
## in R < 4.5.0, due to undefined \includegraphics and unset \graphicspath,
|
75 |
## in R < 4.5.0, due to undefined \includegraphics and unset \graphicspath,
|