rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
214 stars 67 forks source link

Create dependency output directory recursively when copying #332

Closed gadenbuie closed 1 year ago

gadenbuie commented 2 years ago

This PR fixes #331 by having copyDependencyToDir() create the outputDir recursively. Previously, this was a side effect of a later call to file.copy(), so this change makes the recursive directory creation explicit. It's also necessary when a nested directory is required because normalizePath() will fail otherwise.

gadenbuie commented 2 years ago

cc @cpsievert @schloerke since I can't request reviewers in this repo.

cpsievert commented 1 year ago

Thank you!