Code
build_redirect(c("old.html", "new.html#section"), 1, pkg = pkg)
Message
Adding redirect from old.html to new.html#section.
Code
build_redirect(c("old.html"), 5, pkg)
Condition
Error:
! redirects[[5]] must be a character vector of length 2.
i Edit _pkgdown.yml to fix the problem.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.