Skip to content

Commit

Permalink
Add styling to Makefile; fix arrowExports.R to generate styled code
Browse files Browse the repository at this point in the history
  • Loading branch information
nealrichardson committed Aug 4, 2021
1 parent 72b52ef commit c56e13b
Show file tree
Hide file tree
Showing 5 changed files with 906 additions and 899 deletions.
8 changes: 7 additions & 1 deletion r/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ VERSION=$(shell grep ^Version DESCRIPTION | sed s/Version:\ //)
ARROW_R_DEV="TRUE"
ARROW_LARGE_MEMORY_TESTS=$(ARROW_R_DEV)

doc:
style:
R -s -e 'setwd(".."); if (requireNamespace("styler")) styler::style_file(setdiff(system("git diff --name-only | grep r/.*R$$", intern = TRUE), c("r/tests/testthat/latin1.R", "r/data-raw/codegen.R")))'

style-all:
R -s -e 'styler::style_file(setdiff(dir(pattern = "R$$", recursive = TRUE), c("tests/testthat/latin1.R", "data-raw/codegen.R")))'

doc: style
R -s -e 'roxygen2::roxygenize()'
-git add --all man/*.Rd

Expand Down
Loading

0 comments on commit c56e13b

Please sign in to comment.