Skip to content

Conversation

@larmarange
Copy link
Contributor

Consistent with the arguments introduced by number_format()

@larmarange larmarange force-pushed the scientific_format branch from 4ec4a49 to ab48691 Compare July 7, 2018 11:35
Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to add scale here too?

R/formatter.r Outdated
#' scientific(12345, suffix = " cells/mL")
scientific_format <- function(digits = 3, prefix = "", suffix = "",
decimal.mark = ".", trim = TRUE, ...) {
force_all(digits, ...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now needs to include prefix, suffix, etc.

Consistent with the arguments introduced by `number_format()`
@larmarange larmarange force-pushed the scientific_format branch from ab48691 to c367b02 Compare July 7, 2018 15:28
@larmarange
Copy link
Contributor Author

scale has been added (with new tests) and news bullet done

@hadley hadley merged commit 32e6d55 into r-lib:master Jul 7, 2018
@hadley
Copy link
Member

hadley commented Jul 7, 2018

Thanks!

1 similar comment
@hadley
Copy link
Member

hadley commented Jul 7, 2018

Thanks!

@larmarange larmarange deleted the scientific_format branch July 10, 2018 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants