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

Set transformers for RStudio addin or for all styler functions? #436

Closed
courtiol opened this issue Nov 3, 2018 · 4 comments
Closed

Set transformers for RStudio addin or for all styler functions? #436

courtiol opened this issue Nov 3, 2018 · 4 comments

Comments

@courtiol
Copy link

courtiol commented Nov 3, 2018

Hi there,

Perhaps I missed it in the doc, but I did not get how to setup one's favorite style so that it can be used with the addin (style selection). Or more generally, since not all functions take "style" as input, would there be a way to declare as an R option or something the style one wants to apply to any styler function?

In any case, a truly useful package!!

Tx

Alex
PS: @krlmlr perhaps consider presenting it a R meetup Berlin (if you have not done so...).

@lorenzwalthert
Copy link
Collaborator

There is indeed currently no way in the upstream repo to set the style guide for the Addin. There is a fork that implements that and an issue to merge back useful features from forks (#398).

As far as setting defaults go, there are also considerations, e.g. #319. This is not likely to be implemented soonish, i.e. not by the end of the year. For now, you can write your own wrapper or use purr::partial() if you find yourself using different defaults all the time. Sorry for the inconvenience.

@lorenzwalthert
Copy link
Collaborator

@riccardoporreca do you want to rebase on master and make a PR?

@riccardoporreca
Copy link
Contributor

@lorenzwalthert, the fork was rebased, see the corresponding PR #463.

@lorenzwalthert
Copy link
Collaborator

Closed with #463.

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

No branches or pull requests

3 participants