[R-pkg-devel] Testing on old R versions

Gábor Csárdi c@@rd|@g@bor @end|ng |rom gm@||@com
Sun Jan 31 16:57:26 CET 2021


Do you actually experience any problems, if you don't treat this case specially?

AFAIR, in most cases this is not a problem in practice. remotes might
install the CRAN version of rgl as the dependency of alphashape3d, but
`R CMD check` will install and use the local copy of the rgl package
for the check, anyway, so that does not matter much.

More precisely, it would only matter if alphashape3d had some install
time dependency on rgl, because at install time, it will use the CRAN
rgl version. But this is pretty rare I think.

If you still want to fix this, you can replace
`remotes::install_deps()` with `remotes::install_local()` and then
remotes will install the local package as well, not only its
dependencies.

Gabor

On Sun, Jan 31, 2021 at 11:32 AM Duncan Murdoch
<murdoch.duncan using gmail.com> wrote:
>
> I am trying out a modified version of the tidyverse actions, and it does
> seem to be going well.  Just one question:
>
> rgl has a soft dependency on alphashape3d, and alphashape3d has a hard
> dependency on rgl.  This means that I need to install in the order
>
>    rgl hard dependencies
>    rgl
>    rgl soft dependencies
>
> Currently I'm using this code to do that:
>
>    # First install rgl with minimal deps then the rest
>    devtools::install()
>    remotes::install_deps(dependencies = TRUE)
>
> but devtools seems unnecessarily heavy for this.  Does remotes have a
> way to specify the install in the right order?
>
> Duncan Murdoch
>
>
> On 29/01/2021 2:26 p.m., Hadley Wickham wrote:
> > On Thu, Jan 28, 2021 at 6:27 PM Henrik Bengtsson
> > <henrik.bengtsson using gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> you're probably already aware of it, but 'rgl' depends on 'magrittr'
> >> which depends on 'rlang', and the latter requires R (>= 3.3.0).
> >
> > For the reference, we support R-release, R-devel, and the last four
> > versions of R:
> > https://www.tidyverse.org/blog/2019/04/r-version-support/.
> >
> > We automatically run checks on all these R versions using GitHub
> > actions. You can use the same config as us by running
> > usethis::use_tidy_github_actions(). If you're already using GitHub,
> > I'm pretty confident that this is the fastest/easiest way to check
> > with older versions of R.
> >
> > Hadley
> >
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list