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 --vanilla option to speed up hooks and decouple from .Rprofile #165

Closed
lorenzwalthert opened this issue May 1, 2020 · 1 comment
Closed

Comments

@lorenzwalthert
Copy link
Owner

lorenzwalthert commented May 1, 2020

Currently can't really think of a use case where .Rprofile or related is useful. All important options should be exposed as args:.

Edit: Not so easy because we'd have to use system as the language instead of script and change the entrypoint to

Rscript --vanilla inst/bin/style-files

But then the style-files file is not found anymore (obviously). So I think this does not work. We can also not provide --no-vanilla easily in the shebang apparently to make it work for all operating systems.

@lorenzwalthert
Copy link
Owner Author

lorenzwalthert commented May 2, 2020

Added a note in 4bcad27 and opened pre-commit/pre-commit#1426 so peole could use this env variable in their .Rprofile to skip startup stuff while pre-commit hooks are running.

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

1 participant