How to print double quotes (") in R -
i want print screen double quotes (") in r, not working. typical regex escape characters not working:
> print('"') [1] "\"" > print('\"') [1] "\"" > print('/"') [1] "/\"" > print('`"') [1] "`\"" > print('"xml"') [1] "\"xml\"" > print('\"xml\"') [1] "\"xml\"" > print('\\"xml\\"') [1] "\\\"xml\\\"" i want return:
" "xml" " which use downstream.
any ideas?
use cat:
cat("\" \"xml\" \"") or
cat('" "','xml','" "') output:
" "xml" " alternative using noqoute:
noquote(" \" \"xml\" \" ") output :
" "xml" " another option using dqoute:
dquote(" xml ") output :
"“ xml ”"
Comments
Post a Comment