I'm trying to concatenate two strings. The first string should look like the following:
a <- paste("//*/a[@href = 'abcd1234.cfmcyc_dt=",eopm, "&orig_id=1234']",sep="")
> a
[1] "//*/a[@href = 'abcd1234.cfmcyc_dt=20160731&orig_id=1234']"
Then I want to add the second string which is just a closing parentheses like so:
b <- ")"
c <- noquote(b)
[1] )
I try the following but the double quotes gets moved to the end:
paste(a,c)
"//*/a[@href = 'abcd1234.cfmcyc_dt=20160731&orig_id=1234'])"
I want it to look like this:
"//*/a[@href = 'abcd1234.cfmcyc_dt=20160731&orig_id=1234']")
I tried work with escaping the quotes but I can't seem to get it.