Are double “” and single '' quotes (always) interchangeable in R?

前端 未结 3 737
情歌与酒
情歌与酒 2020-12-29 23:49

This is perhaps rather a minor question...

but just a moment ago I was looking through some code I had written and noticed that I tend to just use =\"something

3条回答
  •  误落风尘
    2020-12-30 00:25

    > print(""hi"")
    Error: unexpected symbol in "print(""hi"
    > print("'hi'")
    [1] "'hi'"
    > print("hi")
    [1] "hi"
    

提交回复
热议问题