Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Limit the values of `type` in edit_rstudio_snippets() to reasonable options only #885

Closed
GegznaV opened this issue Sep 9, 2019 · 1 comment · Fixed by #902

Comments

@GegznaV
Copy link
Contributor

commented Sep 9, 2019

As I understand, RStudio has a limited number of different types of snippets:
snippet

But edit_rstudio_snippets() argument type can have any value. For example, once I forgot that I have to use "markdown" and not "rmarkdown" and created a wrong type of document. Snippets in it did not have an effect.
I expect that only reasonable values of type should be accepted. In other cases, either a warning or an error message should be issued.

@jennybc

This comment has been minimized.

Copy link
Member

commented Sep 10, 2019

Sure, referring to some list of valid snippet types sounds like a reasonable idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.