R-nvim / R.nvim

Neovim plugin to edit R files
GNU General Public License v3.0
155 stars 16 forks source link

Fix RFormat for entire file #226

Closed jalvesaq closed 1 month ago

jalvesaq commented 1 month ago

This fixes :RFormat when applied to the entire file, but it only works if using the styler package, not formatR. It seems that formatR can't deal with non-R files such as Quarto documents. Perhaps we should drop the option of using formatR and only use styler.

jalvesaq commented 1 month ago

I removed the integration with the formatR package. The pull request is ready to be either squashed and merged (if we want to keep the :RFormat command) or closed (if we expect that other plugins are used for that).

PMassicotte commented 1 month ago

Good question. I think we can merge this and refactor/deprecate later if necessary. What do you think?

jalvesaq commented 1 month ago

Good question. I think we can merge this and refactor/deprecate later if necessary. What do you think?

I agree.