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

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


Copy link

@GegznaV GegznaV commented Sep 9, 2019

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

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.

Copy link

@jennybc jennybc 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
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants