set_vanity_url | R Documentation |
Sets the Vanity URL for a piece of content.
set_vanity_url(content, url, force = FALSE)
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 |
An updated Content object
Other content functions:
content_delete()
,
content_item()
,
content_title()
,
content_update()
,
create_random_name()
,
dashboard_url()
,
dashboard_url_chr()
,
delete_thumbnail()
,
delete_vanity_url()
,
deploy_repo()
,
get_bundles()
,
get_environment()
,
get_image()
,
get_job()
,
get_jobs()
,
get_thumbnail()
,
get_vanity_url()
,
git
,
has_thumbnail()
,
permissions
,
set_image_path()
,
set_run_as()
,
set_thumbnail()
,
swap_vanity_url()
,
terminate_jobs()
,
verify_content_name()
## Not run:
bnd <- bundle_dir("~/my/directory")
connect() %>%
deploy(bnd) %>%
set_vanity_url("a/vanity/url")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.