showkey
showkey

Reputation: 318

Can I pretty print a complicated string in R console?

I want to get the effect of what I say is what I get.

"b\" it\'s me \"ha ha\""->string
print(string)
[1] "b\" it's me \"ha ha\""

Can I pretty print the string in a simple way? What I want to get it displayed in the screen is:

b "it's me "ha ha"  

Upvotes: 0

Views: 211

Answers (1)

Sven Hohenstein
Sven Hohenstein

Reputation: 81743

Did you try cat?

cat(string)

b" it's me "ha ha"

Upvotes: 4

Related Questions