RStudio snippet not working

后端 未结 2 1754
[愿得一人]
[愿得一人] 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.

提交回复
热议问题