Skip to content

Commit

Permalink
tweak r87664 for builds with a pkgType="both" default
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87668 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
smeyer committed Jan 29, 2025
1 parent a793cf9 commit 5e3308f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/tools/tests/Rd2pdf.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ for (encoding in c("UTF-8", "latin1"))
stop("failed to render from source directory of ", sQuote(pkgname))

stopifnot(dir.exists("lib") || dir.create("lib"))
install.packages(pkgdir, lib = "lib", repos = NULL,
install.packages(pkgdir, lib = "lib", repos = NULL, type = "source",
INSTALL_opts = INSTALL_opts)
Rcmd(c("Rd2pdf", Rd2pdf_opts, file.path("lib", pkgname))) == 0L ||
stop("failed to render from installed ", sQuote(pkgname))
}
stopifnot(dir.exists("lib_latex") || dir.create("lib_latex"))
install.packages(pkgdir, lib = "lib_latex", repos = NULL,
install.packages(pkgdir, lib = "lib_latex", repos = NULL, type = "source",
INSTALL_opts = c(INSTALL_opts, "--latex"))
Rcmd(c("Rd2pdf", Rd2pdf_opts, file.path("lib_latex", pkgname))) == 0L ||
stop("failed to render preconverted LaTeX help for ", sQuote(pkgname))
Expand Down

0 comments on commit 5e3308f

Please sign in to comment.