Repository navigation
R 1.0.0 - #296
R 1.0.0#296
Conversation
Codecov Report
@@ Coverage Diff @@
## master #296 +/- ##
=======================================
Coverage 91.47% 91.47%
=======================================
Files 30 30
Lines 1326 1326
=======================================
Hits 1213 1213
Misses 113 113
Continue to review full report at Codecov.
|
186e05a to
c23e8e5
Compare
31b803b to
7c1a50d
Compare
|
This is the result from
All the other things from #145 are incorporated, so I think we are ready for the submission. Do we need to state this other note separately, i.e. per built environment? Also why is there no note about the fact that this is a new release? |
|
Also, @krlmlr can you update the pkgdown page before the submission? |
|
For |
krlmlr
left a comment
There was a problem hiding this comment.
A few more minor nits, we might need to review initialize_attributes.
| Package: styler | ||
| Title: Non-invasive Pretty Printing of R code | ||
| Version: 0.0-11 | ||
| Title: Non-Invasive Pretty Printing of R code |
There was a problem hiding this comment.
winbuilder complains that "code" needs to be capitalized too.
| - Create and serialize nested parse data. | ||
| - Internal support for indention of expressions with parentheses. | ||
| - Adding and removing spaces around operators on flat parse data. | ||
| ## styler 0.1.0 (2017-12-05) |
| style_text(text, ..., style = tidyverse_style, transformers = style(...)) | ||
| ``` | ||
|
|
||
| ### style guide creators |
There was a problem hiding this comment.
I think for a user the tidyverse_style() function is more important than create_style_guide().
There was a problem hiding this comment.
Ok, moved them up.
| This function is used to create a style guide. | ||
| ``` | ||
| create_style_guide( | ||
| initialize = initialize_attributes, |
There was a problem hiding this comment.
What is initialize_attributes? It should be either exported (and then perhaps be a function like default_style_guide_attributes()), or initialize should accept a default argument of NULL.
There was a problem hiding this comment.
Yes, thanks, forgot about that. I think we may rename it to default_style_guide_attributes() then and export it.
|
|
||
| These are helper functions that simply forward to the helper functions above. | ||
| ``` | ||
| tidyverse_reindention() |
There was a problem hiding this comment.
Maybe add these two to the "style guides" section?
|
Yes, we can remove old news. Added deploy key and restarted Travis job https://travis-ci.org/r-lib/styler/jobs/311941953, which should update pkgdown. |
|
Restarted job https://travis-ci.org/r-lib/styler/jobs/311951016 instead, this is the correct 0.0-11 release. |
|
Built pkgdown manually, for some reason the rebuild on Travis CI doesn't catch all changes. |
2a4c554 to
c665894
Compare
|
Can't figure out why the appveyor buid fails now. Maybe currently updating to 3.4.3? |
|
New winbuild results
Code is now capitalised in the DESCRIPTION, so everything should be fine now. |
krlmlr
left a comment
There was a problem hiding this comment.
Awesome, almost ready to go! I think we can ignore AppVeyor failures for now, krlmlr/r-appveyor#99.
| This function is used to create a style guide. | ||
| ``` | ||
| create_style_guide( | ||
| initialize = initialize_attributes, |
|
I also rephrased the help file for |
|
Are we set for the release? |
|
Should we also style the source code with styler prior to the CRAN submission? |
c62de00 to
e133152
Compare
| This function is used to create a style guide. | ||
| ``` | ||
| create_style_guide( | ||
| initialize = default_style_guide_attributes, |
There was a problem hiding this comment.
No there must not be braces, see the example in the docs
set_line_break_before_curly_opening <- function(pd_flat) {
op <- pd_flat$token %in% "'{'"
pd_flat$lag_newlines[op] <- 1L
pd_flat
}
set_line_break_before_curly_opening_style <- function() {
create_style_guide(line_break = set_line_break_before_curly_opening)
}
style_text("a <- function(x) { ! x }", style = set_line_break_before_curly_opening_style)
I hope the following is clear enough:
#' @param line_break A list of transformer functions that manipulate line_break
#' information.The other arguments are described in a similar fashion.
Do you think it's clear enough or should we describe each of these arguments more explicitly, i.e. like this:
#' @param line_break A list of bare transformer function names that manipulate
#' line_break information.|
I don't mind postponing styling styler until after the CRAN release, but we can do it if you like. |
Not to be merged. Aims to close #145.