Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional arguments for scientific_format() #147

Merged
merged 1 commit into from
Jul 7, 2018

Conversation

larmarange
Copy link
Contributor

Consistent with the arguments introduced by number_format()

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_format <- function(digits = 3, ...) {
#' 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
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