Last active
November 7, 2016 22:09
-
-
Save charlietsai/5a2d7a1747c7fe1048795805ef04883a to your computer and use it in GitHub Desktop.
Command line script for reformatting R code using formatR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env Rscript | |
args = commandArgs(trailingOnly=TRUE) | |
formatR::tidy_source(args[1], file=args[1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment