snippets_read: Parse the current snippets file into a list of snippets.

Description Usage Arguments Details Value

Description

Parse the current snippets file into a list of snippets.

Usage

1

Arguments

language

language of the snippet. Choices are "r", "c_cpp", "html", "css", "java", "javascript", "python", and "sql". Ignored if path is specified.

path

path to .snippets file

Details

Note that a .snippets file for a language may not yet exist. If it does not exist, go to Preferences->Code->Edit Snippets in RStudio, make a trivial change to the language of choice (for example, a new empty line), and click Save. This will create the language file in ~/.R/snippets/<language>.snippets with defaults included.

Value

A named list of snippets, each of which is a single string that includes tabs at the start of each line.


dgrtwo/snippr documentation built on May 15, 2019, 7:29 a.m.