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

rewrite test to be compatible with R < 4.1.0 #302

Merged
merged 1 commit into from
Sep 24, 2021

Conversation

eddelbuettel
Copy link
Member

The new test for the 'piped' query used |> which is a (very clever) parser extension turning, say, penguins |> summary() into the call summary(penguins) internally (as wrapping deparse(substitute(...)) around an expression shows). This meaning the pipe is clean and free of side-effects which is nice. It also means it needs the R 4.1.0 or later parser which is less ideal.

This PR rewrites the test to the functionally equivalent older style, which is tested. We cannot condition in a test file on R 4.1.0 as the whole file would be parsed first :-/ I looked into other tricks from the test runner setup but nothing really good suggests itself so rewriting may be the way forward.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #10691: Adjust new test for R < 4.1.0.

@eddelbuettel eddelbuettel merged commit a7c88ae into master Sep 24, 2021
@eddelbuettel eddelbuettel deleted the de/sc-10691/adjust_new_test branch September 24, 2021 16:40
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.

None yet

2 participants