Skip to content

Dependencies example does not show where to put the code #72

@jzadra

Description

@jzadra

The dependencies example says to add

- uses: r-lib/actions/setup-r@v2
  with:
    r-version: '4.2.0' # The R version to download (if necessary) and use.

But it does not indicate where that code is supposed to go as far as indentation and parent. Does it go under jobs: built-deply: steps:? Or top level? More info is needed.

Activity

jzadra

jzadra commented on Mar 22, 2023

@jzadra
Author

image

cderv

cderv commented on Mar 22, 2023

@cderv
Collaborator

But it does not indicate where that code is supposed to go as far as indentation and parent. Does it go under jobs: built-deply: steps:? Or top level? More info is needed.

e tried to help user by saying this in our doc: https://github.com/quarto-dev/quarto-actions/blob/main/examples/example-03-dependencies.md#installing-r

If you're using quarto-publish-example.yml, add those right after the # add software dependencies here comment.

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
# To install LaTeX to build PDF book
tinytex: true
# uncomment below and fill to pin a version
# version: SPECIFIC-QUARTO-VERSION-HERE
# add software dependencies here

This shows an example of where this should be added. Did you see that ? Was it not helpful example ?

I think we assume that users using the GitHub actions in there project will know about how to set an action and how other actions can be used (they can only be used as a step within a job)

We can definitely make more example if this is not helpful enough. PR are welcome too !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cderv@jzadra

        Issue actions

          Dependencies example does not show where to put the code · Issue #72 · quarto-dev/quarto-actions