Hello, I have a server with R 3.6.3 installed and I struggled a bit with updating several R packages that utilizes some new syntax introduced in R 4.1.0, such as the native pipe |> or function definition shorthand \(x) ... The thing is that these packages states "Depends: R (>= 3.6.0)" and pass R CMD Check without any issues. My problem occurred at the installation time. I can see that developers naturally include the new handy syntax but oftentimes forget to raise R version dependency in their DESCRIPTIONs. Should we employ some new checks? Best, Jan [[alternative HTML version deleted]]
I?ve been guilty of this myself. I think a check would be good. In my case I was using the new sort_by() function (I think also 4.1) and a user was failing to install on R 4.0. On Fri, Dec 13, 2024 at 11:30 Jan Net?k <netikja at gmail.com> wrote:> Hello, > > I have a server with R 3.6.3 installed and I struggled a bit with > updating several R packages that utilizes some new syntax introduced in R > 4.1.0, such as the native pipe |> or function definition shorthand \(x) ... > > The thing is that these packages states "Depends: R (>= 3.6.0)" and pass R > CMD Check without any issues. My problem occurred at the installation time. > I can see that developers naturally include the new handy syntax but > oftentimes forget to raise R version dependency in their DESCRIPTIONs. > Should we employ some new checks? > > Best, > Jan > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-devel >[[alternative HTML version deleted]]