Keywords: utilities
### ** Examples (y <- URLencode("a url with spaces and / and @"))
[1] "a%20url%20with%20spaces%20and%20/%20and%20@"
URLdecode(y)
[1] "a url with spaces and / and @"
(y <- URLencode("a url with spaces and / and @", reserved = TRUE))
[1] "a%20url%20with%20spaces%20and%20%2F%20and%20%40"
URLdecode(y)
[1] "a url with spaces and / and @"
URLdecode(z <- "ab%20cd")
[1] "ab cd"
c(URLencode(z), URLencode(z, repeated = TRUE)) # first is usually wanted
[1] "ab%20cd" "ab%2520cd"
## both functions support character vectors of length > 1 y <- URLdecode(URLencode(c("url with space", "another one")))