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

minimum supported R version 3.5 or 4.1 #389

Closed
medewitt opened this issue Nov 21, 2023 · 4 comments · Fixed by #402
Closed

minimum supported R version 3.5 or 4.1 #389

medewitt opened this issue Nov 21, 2023 · 4 comments · Fixed by #402
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed infrastructure

Comments

@medewitt
Copy link
Collaborator

Describe the bug

Current source code (e.g., here) uses some of the new syntax (|> in the vignettes, \(x, y) lambda functions) in R not available until 4.1.0. Currently, the minimum version supported in the package description is 3.5.

To Reproduce
See source code.

Expected behavior
Ideally source and DESCRIPTION are consistent.

Screenshots
N/A

Desktop (please complete the following information):
All

Smartphone (please complete the following information):
N/A

Additional context
I just wanted to bring attention to this. Maybe everyone has upgraded to R >= 4.1.0 and this isn't an issue (and we bump the R version in the DESCRIPTION).

Some old academic servers and clusters might still be running R 3.6.x (this was case with CentOS server I previously ran), so could choke on the new requirements. Either way I think DESCRIPTION and the functions used need to be consistent.

@pearsonca
Copy link
Collaborator

I think the idea is that's "legal" syntax in the vignettes (which people can run elsewhere, or downgrade manually), while the package only actually requires the specified version to run.

@seabbs
Copy link
Collaborator

seabbs commented Nov 22, 2023

Thanks for flagging @medewitt - this is a good point.

I think from a technical sense what @pearsonca is saying is definitely true but also think we want to be presenting as consistent an experience as possible.

Personally, I would be very happy increasing the dependency to 4.1.0 - especially given that we are so dependent on cmdstanr and cmdstan and that versioning for those is currently difficult. On the other hand if we stuck with the technical dependency declaration then maybe we should update some documentation to indicate this to users (and maybe flag vignettes with a warning?).

@seabbs seabbs added documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed infrastructure labels Nov 22, 2023
@medewitt
Copy link
Collaborator Author

Makes sense @pearsonca . It looks like the only non-vignette use is in enw_expectation with new lambda function syntax. That could revert the the old-style function( x, y) syntax and R3.5 minimum wouldn't fail unless someone trying to build the vignettes (i.e., install.packages( build_vignettes = TRUE)` or build from source.

It might just be a nitpick and really a non-issue?

@pearsonca
Copy link
Collaborator

pearsonca commented Nov 22, 2023

If the >3.5 syntax is used outside vignettes (or other build/test infrastructure, etc), including documentation examples, that is an issue (for now - also on board with ratchetting up required R version).

In the vignette, I'm less fussed about it - indeed, I prefer the 4+ syntax there: its just better and we should normalize/encourage its use. I suppose we might footnote some caveats about using the 4+ syntax in the vignettes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants