Referring the title, I\'m figuring how to convert space between words to be %20 .
For example,
> y <- \"I Love You\"
How to
Another option would be URLencode():
URLencode()
y <- "I love you" URLencode(y) [1] "I%20love%20you"