Skip to content

Commit 74e2f2f

Browse files
committed
tweak wording
1 parent 7107c68 commit 74e2f2f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
rmarkdown 2.9
22
================================================================================
33

4-
- All HTML dependencies are now correctly supported, included those with only a `href` url in their `src`. Previously, an unjustified error 'path for html_dependency not provided.' was thrown when rendering documents (thanks, @crazycapivara, @matthewstrasiotto, #1805, #1948, #2151).
4+
- All HTML dependencies are now correctly supported, included those with only an `href` component but not `file` component in their `src` attribute. Previously, **rmarkdown** would throw the error `'path for html_dependency not provided'` when rendering documents containing HTML dependencies with `href` components (thanks, @crazycapivara, @matthewstrasiotto, #1805, #1948, #2151).
55

66
- Fix an error thrown with output format using a `file_scope` function (like in **bookdown**) (thanks, @rfaelens, #2149).
77

R/html_dependencies.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ validate_html_dependency <- function(list) {
346346

347347
# check src path or href are given
348348
if (is.null(list$src)) {
349-
stop("neither path nor href are provided for html_dependency", call. = FALSE)
349+
stop("src for html_dependency not provided", call. = FALSE)
350350
}
351351
if (!is.null(list$src$file)) {
352352
file <- list$src$file

0 commit comments

Comments
 (0)