字符串中的R降价换行符(R Studio)

In regular R code I can do the following (when I put pointer at long_string and execute:

long_string <- 'a
b'

So if I have a very long string then I can just hit Enter to split it and R Studio will understand.

我R-markdown以上不起作用

```{r string test, echo = F}

long_string <- 'a
b'

```

If I put pointer at long_string and execute, I will end up with + in console, meaning that R is expecting end of line command.

一种解决方案是选择整个表达式(多行)并运行它,但是我想知道是否还有其他解决方案。