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

run styler on template-activate.R #2025

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fh-mthomson
Copy link
Contributor

When calling styler::style_dir() on a project using renv, renv/activate.R gets auto-updated, which leads to some subtle noise / churn.

Changes in this MR were made as follows:

> styler::style_file("templates/template-activate.R")
Styling  1  files:
 templates/template-activate.R ℹ 
────────────────────────────────────────
Status	Count	Legend 
✔ 	0	File unchanged.
ℹ 	1	File changed.
✖ 	0	Styling threw an error.
────────────────────────────────────────
Please review the changes carefully!

Using the latest version on CRAN:

> packageVersion('styler')
[1] ‘1.10.3’

@kevinushey
Copy link
Collaborator

It seems like "renv" should be one of the excluded directories for styler, though:

> formals(styler::style_dir)$exclude_dirs
c("packrat", "renv")

Do you know why that's not applying in your case?

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

Successfully merging this pull request may close these issues.

2 participants