Description Usage Arguments Examples
Escape all special characters (i.e. everything except for a-z, A-Z, 0-9, '-', '.', '_' or '~') for use in URLs.
1 2 3 |
url |
A character vector (typically containing urls or parameters) to be encoded/decoded |
1 2 3 4 5 6 7 8 | # Escape strings
out <- curl_escape("foo = bar + 5")
curl_unescape(out)
# All non-ascii characters are encoded
mu <- "\u00b5"
curl_escape(mu)
curl_unescape(curl_escape(mu))
|
[1] "foo = bar + 5"
[1] "%C2%B5"
[1] "<U+00B5>"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.