Skip to content

Commit

Permalink
Merge pull request #87 from adam-m-mcelhinney/master
Browse files Browse the repository at this point in the history
Updated get_summary_view() to round all doubles to 3 decimal places.
  • Loading branch information
bburns632 authored Apr 18, 2018
2 parents a271ef8 + ec7065f commit cda748a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/PackageDependencyReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ DependencyReporter <- R6::R6Class(
, lengthChange = FALSE
)
)
# Round the double columns to three digits for formatting reasons
numCols <- names(which(unlist(lapply(tableObj$x$data, is.double))))
tableObj <- DT::formatRound(columns = numCols, table = tableObj
, digits=3)
return(tableObj)
}

Expand Down
4 changes: 4 additions & 0 deletions R/PackageFunctionReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ FunctionReporter <- R6::R6Class(
, lengthChange = FALSE
)
)
# Round the double columns to three digits for formatting reasons
numCols <- names(which(unlist(lapply(tableObj$x$data, is.double))))
tableObj <- DT::formatRound(columns = numCols, table = tableObj
, digits=3)
return(tableObj)
}
),
Expand Down

0 comments on commit cda748a

Please sign in to comment.