-
Notifications
You must be signed in to change notification settings - Fork 73
Test R 3.1 and R 3.2 #249
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
Test R 3.1 and R 3.2 #249
Conversation
Link to travis build: https://travis-ci.org/krlmlr/styler/jobs/291431915#L3122 |
53aff9f
to
59a8494
Compare
We can just use the backports package to fix the trimws error: https://travis-ci.org/krlmlr/styler/jobs/293558005#L1786 |
|
Ok, great. |
75b5a47
to
cc9af41
Compare
cc9af41
to
acfb74f
Compare
eeb2c0d
to
0a4de6d
Compare
Ok, now I made it work. |
create_node_from_nested_root <- function(pd_nested) { | ||
if (getRversion() < 3.2) stop_insufficient_r_version() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just check if the data.tree package is available here? They might start supporting R 3.1, or it still may be missing because it's Suggests only.
styler:::create_tree(code) | ||
``` | ||
|
||
## levelName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this still renders correctly in the vignette.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is a code block, too. I was just looking for the triple backticks.
- Adapt documentation (#290). - Add roundtrip (#287). - Fix AppVeyor builds. - Fix token insertion / comment interaction (#279). - Clarify labelling strategy (#285). - Fixing and extending Rstudioaddins (#283). - Fix eq assign parsing (#276). - style_files -> vectorized style_file (#273). - Refactoring (#270). - Fix CI (#275). - Fix covr (#274). - Renaming files (#271). - Handle styling of an unsaved active file (#243). - Test R 3.1 and R 3.2 (#249). - Allow empty {} without line break (#261). - Wrap expr in expr before enclosing with curly braces (#263). - Avoid checking for hard-coded dot (#262). - Account for dependency renaming (utf8 changed to enc) (#264). - Indention of function declaration and closing braces (#260). - Only remove line break before closing with strict option (#252).
@lorenzwalthert: Our suggested data.tree imports DiagrammeR which requires R >= 3.2. Could you please look into making R CMD check work if data.tree is not available? You can push to this branch if you like.
Required for #238.