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 R version dependency in R packages - R-hub blog #159

Open
utterances-bot opened this issue Sep 12, 2022 · 4 comments
Open

Minimum R version dependency in R packages - R-hub blog #159

utterances-bot opened this issue Sep 12, 2022 · 4 comments

Comments

@utterances-bot
Copy link

Minimum R version dependency in R packages - R-hub blog

https://blog.r-hub.io/2022/09/12/r-dependency/

Copy link

etiennebacher commented Sep 12, 2022

Nice post! To me, the first step to check whether my package depends on the correct version is to check the NEWS of R when I'm not sure when a function was introduced (or modified). This can be done here for R >= 4.0.0 and with news(package = "R-3") and news(package = "R-2") for R >= 3.0.0 and R >= 2.0.0 respectively.

Copy link
Contributor

cderv commented Sep 12, 2022

when I'm not sure when a function was introduced (or modified).

Just to share that I am using this app for that https://hughjonesd.shinyapps.io/rcheology/ - Very useful !
In case it can be of interest to others...

@etiennebacher
Copy link

Yes, this one is very nice! I also wrote a small package (not on CRAN, not tested, etc.) that takes a function name and quickly prints the NEWS entries that contain it. Far from perfect but it does the job for me: https://github.com/etiennebacher/getnews

@Bisaloo
Copy link
Member

Bisaloo commented Sep 14, 2022

Thanks for your comments! I usually go to backports README to determine if a function is going to require a more recent version but your options sound better! I'll give it a go next time I'm faced with this situation.

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

No branches or pull requests

4 participants