Skip to content

Commit 1fc09fd

Browse files
committed
create manuals/pkg/man/ dir
1 parent d00bc8a commit 1fc09fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/build_html_mans.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ build_html_mans <- function(package_dirs, reposRoot) {
199199
man_dir <- file.path(reposRoot, "manuals")
200200
if (!dir.exists(man_dir)) dir.create(man_dir, recursive = TRUE)
201201
outfiles <- file.path(man_dir, packages, "man", paste0(packages, ".html"))
202+
outdirs <- dirname(outfiles)
202203
for (i in seq_along(package_dirs)) {
204+
if (!dir.exists(outdirs[i]))
205+
dir.create(outdirs[i], recursive = TRUE)
203206
tools::pkg2HTML(
204207
dir = package_dirs[i],
205208
out = outfiles[i]

0 commit comments

Comments
 (0)