On Wed, Dec 16, 2020 at 8:39 PM Henrik Bengtsson <henrik.bengts...@gmail.com> wrote: > > BTW, 'backports' provides a backport for tools::R_user_dir() also for > R (< 4.0.0), so an alternative solution in this case is: > > Imports: backports > > and > > importFrom(backports, R_user_dir) > > The 'backports' package takes the same approach as I did in my previous > message.
FWIW, the backports README actually suggests a different approach: https://github.com/r-lib/backports#in-packages G. [...] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel