Skip to content
Prev 6709 / 12125 Next

[R-pkg-devel] Two (newbie/luser) questions about adding CI to github hosted package

On 16/03/2021 9:04 a.m., Chris Evans wrote:
...
If you have something like this in your yaml file:

# Controls when the action will run.
on:

   pull_request:
     branches: [ master ]

   workflow_dispatch:


then it says the workflow will run when there is a pull request to the 
master branch, and also on request (that's what "workflow_displatch:" 
means).  You can leave out the "pull_request:" lines and only run on 
request.

To actually make the request, you go onto your Github site, go to the 
Actions page, then pick one of the workflows from the list on the left.
If it has "workflow_dispatch" in the file, you'll see a "Run workflow" 
button appear on the right.  It's actually a drop down box; you can 
choose to use the workflow from a different branch by choosing it from 
the list.

Something I'm not sure about is whether choosing a workflow from a 
different branch also selects your package code from that branch, or 
whether you have to choose that on the main Code page.  Experiment, it's 
free!
I think so.
This really depends on your audience.  It looks like the script you have 
came from the tidyverse people; they try to support 4 releases before 
the current one.  That's pretty extreme, you don't really need all 
those.  But I'd leave oldrel in place.  There are definitely lots of 
people out there who haven't updated to 4.0.x yet, for various reasons, 
e.g. not being admin on their computer.
I don't know.  This depends on all those paths in the rspm field being 
available.  If RStudio is making them available, that is probably fine.
My feeling is you want lots of versions, and lots of platforms, but not 
necessarily the product of those two things.  If something is going to 
fail because of a platform issue, it'll likely fail in the "release" 
version.  If it is going to fail because of R changes, it'll likely fail 
on all platforms.

As you've probably seen, when one of those jobs fails, you get email:  I 
don't like repetitive emails, so I limit the jobs I run.

Duncan Murdoch