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

Use formatR with Rmarkdown? #72

Open
oli666 opened this issue Aug 24, 2017 · 2 comments
Open

Use formatR with Rmarkdown? #72

oli666 opened this issue Aug 24, 2017 · 2 comments

Comments

@oli666
Copy link

oli666 commented Aug 24, 2017

Hi,
probably more a feature request than an issue. formatR does current not work out-of-the-box with a complete markdown file using "tidy_file", does it?
Sub-question: Is there a way in RStudio to use the formatR addin on a specific chunk only? Selecting the chunk before running the addin does not do the trick for me.
Thanks,
Oli

@yihui
Copy link
Owner

yihui commented Aug 24, 2017

No, it cannot format an Rmd file at the moment.

RE: the addin, please feel free to improve it here: https://github.com/rstudio/addinexamples/blob/master/R/reformatAddin.R

@rpietro
Copy link

rpietro commented Nov 22, 2017

agree with @oli666 , the ability to format code inside Rmd chunks would be outstanding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants