reparse_url | R Documentation |
Parses the given URL and continuously parses the resulting path so long as the result is only a scheme and path. This occurs for nested schemes. The final URL accumulates the scheme as a character vector with super- to sub-scheme ordering.
reparse_url(x)
x |
URL to parse for components. |
The implementation repeatedly parses, that is re-parses, while non-NULL URL components result in only a scheme-path pair. Note that URLs carry NULL values for non-existent URL components.
URL components with vectorised nested scheme.
url <- canny.tudor::reparse_url("superscheme:subscheme://host/path") url$scheme # [1] "superscheme" "subscheme"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.