RStudio snippet not working

后端 未结 2 1734
[愿得一人]
[愿得一人] 2021-01-18 03:08

I\'m utilizing a Macbook pro running \"El Capitan\" and RStudio is version 0.99.902. I\'m writing a Rmd document. I want to utilize the snippets that RStudio has built in an

相关标签:
2条回答
  • 2021-01-18 03:50

    In Tools > Global Options > Code > Editing > Edit Snippets, go to the section "Markdown" and paste your snippet there. Save, OK, apply. Type r in your Rmd document (not within in a R code chunk) and click Shift+Tab. If it still does not work, try to create a new "R markdown" file (File > New file > R markdown) and check if it works there.

    0 讨论(0)
  • 2021-01-18 04:01

    You can invoke code snippets in Markdown in RStudio using Shift+Tab after typing the snippet, but it will not currently prompt you to expand the snippet, either with Tab or by just waiting. I thought this was a bug, but the discussion in this GitHub issue says it's intended, just still-to-be-documented.

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