Sets the Vanity URL for a piece of content.

set_vanity_url(content, url, force = FALSE)

Arguments

content

A Content object

url

The path component of the URL

force

optional. Default FALSE. Whether to force-reassign a vanity URL that already exists

Value

An updated Content object

Examples

if (FALSE) { # \dontrun{
bnd <- bundle_dir("~/my/directory")
connect() %>%
  deploy(bnd) %>%
  set_vanity_url("a/vanity/url")
} # }