[R-pkg-devel] Accessing features in R4.0.

Gábor Csárdi c@@rd|@g@bor @end|ng |rom gm@||@com
Wed Dec 16 21:49:05 CET 2020


On Wed, Dec 16, 2020 at 8:39 PM Henrik Bengtsson
<henrik.bengtsson using 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.

[...]



More information about the R-package-devel mailing list