Last chance! 50% off unlimited learning
Sale ends in
Sets up workflow automation, including continuous integration and deployment (CI/CD) for different kinds of R projects on GitHub actions. This function
Picks a set of sensible defaults for your project.
Transforms a list of workflow and action blocks into the GitHub actions syntax.
Adds a .github/main.workflow
file to your repository.
use_ghactions(workflow = website())list2ghact(workflow)
[list(list())]
A named list of blocks nested as:
The workflow block: arguments to make_workflow_block()
as a named list and
`$actions``, which in turn comprises of the
Several action blocks with arguments to make_action_block()
as a named list.
A logical vector indicating if file was modified.
list2ghact
: Helper to turn block lists into strings.
Useful when you want the result printed to console, not written to file.
Other setup: browse_github_actions
,
edit_workflow
,
use_dockerfile
,
use_ghactions_badge
Other setup: browse_github_actions
,
edit_workflow
,
use_dockerfile
,
use_ghactions_badge
# NOT RUN {
use_ghactions(workflow = website())
# }
# NOT RUN {
# this will print the result to the console for inspection
# }
# NOT RUN {
list2ghact(workflow = website())
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab