Skip to contents

This function determines the appropriate path to the snippets file based on the type of the file and the version of RStudio being used. It handles the differences in file locations between old and new versions of RStudio.

Usage

get_snippets_file(
  type = c("r", "markdown", "c_cpp", "css", "html", "java", "javascript", "python",
    "sql", "stan", "tex")
)

Arguments

type

A character string specifying the type of the snippets file. The default is "r". Other valid types include "markdown", "c_cpp", "css", "html", "java", "javascript", "python", "sql", "stan", "tex".

Value

A character string indicating the path to the snippets file.