avoid string printed to console getting truncated (in RStudio)

前端 未结 1 655
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 06:34

I want to print a long string to the RStudio console so that it does not get truncated.

> paste(1:300, letters, collapse=\" \")
[1] \"1 a 2 b 3 c 4 d 5 e          


        
相关标签:
1条回答
  • 2020-11-27 07:11

    This is an RStudio-specific feature, intended to help resolve problems where printing overly long strings could cause IDE sluggishness. (I believe it was added with the latest release, v0.99.896)

    You can opt-out of this truncation by setting the Limit length of lines displayed in the console to: option to 0 (see the final option in the dialog):

    0 讨论(0)
提交回复
热议问题