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

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Sun Jan 31 18:52:34 CET 2021


On 31/01/2021 12:35 p.m., Duncan Murdoch wrote:
> On 31/01/2021 10:57 a.m., Gábor Csárdi wrote:
>> Do you actually experience any problems, if you don't treat this case specially?
> 
> Yes, what was happening was that remotes::install_deps skipped
> installing rgl from CRAN because the local copy had a later version
> number.  Sorry, I deleted most of the runs that had failures in them, so
> I can't quote the exact message about this.

I just re-ran a version of the old one.  I'm caching package builds, so 
now I get alphashape3d anyway, but in case you're interested, the 
message was:

  Skipping 1 packages ahead of CRAN: rgl

Duncan Murdoch

> 
>>
>> 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.
> 
> I'll try that.
> 
> Duncan
> 
>>
>> 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