# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_URLencode = getFromNamespace("URLencode", "backports")
URLdecode(z <- "ab%20cd")
c(bp_URLencode(z), bp_URLencode(z, repeated = TRUE))
Run the code above in your browser using DataLab