Skip to content

Commit

Permalink
Fix #53: default term.colors defined on run instead of install
Browse files Browse the repository at this point in the history
  • Loading branch information
brodieG committed Aug 5, 2016
1 parent 050415c commit bad2a4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ check_args <- function(

# int 1L vars

if(is.null(term.colors)) term.colors <- crayon::num_colors()
msg.base <- "Argument `%s` must be integer(1L) and not NA."
int.1L.vars <- c("max.diffs", "term.colors")
for(x in int.1L.vars) {
Expand Down
2 changes: 1 addition & 1 deletion R/system.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
diffobj.format="auto",
diffobj.interactive=NULL, # NULL == interactive()
diffobj.color.mode="yb",
diffobj.term.colors=crayon::num_colors(),
diffobj.term.colors=NULL,
diffobj.brightness="neutral",
diffobj.tab.stops=8L,
diffobj.disp.width=0L, # 0L == use style width, see param docs
Expand Down

0 comments on commit bad2a4c

Please sign in to comment.