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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -