Open Bisaloo opened 4 years ago
Dependency upgrades blocked by minimum R version
R 4.0.0
Just a reminder that bumping the minimum R version should also be the opportunity to remove code added to ensure compatibility with older version (e.g., stringAsFactors()
, getRversion()
branches, etc.)
This is a bookmark issue to keep in mind the features we could leverage from the newer R versions in cases we accept to bump the minimum required R version in the future:
R 3.6.0
as.cimg
method forrimg
objects even though imager is inSuggests
hcl.colors(n, palette = "cividis")
instead ofviridisLite::cividis(n)
(removes the viridisLite dependency): see PR #184R 4.0.0
plot
/plot.default
(it's in base and not in graphics anymore)palette.colors()
function to specify colourblind friendly colour palettes: see PR #184list2DF()
instead ofdo.call(cbind, ...)
R 4.1.0
|>
in examples etc. I like pipes (TW).apply(x, MARGIN, FUN, simplify = FALSE)
instead oflapply(seq_len(nrow/ncol(x)), FUN)
R 4.4.0
val <- val %||% default
, particularly useful to set defaults to arguments, as in https://github.com/rmaia/pavo/blob/a3e3986083756bfe5c0e07dbe3591e53e29cfba8/R/segplot.R#L48-L62Feel free to edit this issue to add more items