Skip to content

pkgdown workflow does not run staged dependencies although specified, not sure why?... #301

Closed

Description

@danielinteractive

Hi @walkowif and @llrs-roche

after your recent update on the default installation mechanism, I figured I need to manually specify to run staged dependencies because it seems only with that I can install cmdstanr successfully.
My question is about the pkgdown workflow - I do get an error for a missing package, and somehow the whole package installation step is skipped, and I don't see why.

Image

Please check https://github.com/Genentech/jmpost/actions/runs/26988514096/job/79643775635
(Btw this is important for my work on the Roche/Genentech package jmpost.)

Thanks,
cheers
Daniel

Activity

  1. llrs-roche commented on Jun 5, 2026

    @llrs-roche
    Contributor

    Hi Daniel,

    Yes, we changed the default because we were seeing some packages not being installed with the staged dependencies strategy and it is deprecated. This is surprising because the ggplot2.utils package is in Imports and should be available regardless of which strategy is used.

    The GHA reports it couldn't be installed on the previous step and the action file describe the staged strategy which we didn't modify. I see you already tried twice to run the action.

    What I don't see is the step "Run Staged dependencies 🎦" being run as in other jobs. I think on the yaml file you'll need to inline the option or some other change in order to trigger it back.
    Instead of

          deps-installation-method: |
            staged-dependencies
    

    Try something like

          deps-installation-method: staged-dependencies
    

    I triggered a check on ggplot2.utils repository just in case.

  2. danielinteractive commented on Jun 22, 2026

    @danielinteractive
    ContributorAuthor

    Thanks @llrs-roche ,

    • for ggplot2.utils I saw some documentation issues, fixing in Fix docs ggplot2.utils#100
    • I don't know why the same syntax does not work in the docs workflow to trigger the staged dependencies install, now trying to delete another option to see if it helps
  3. danielinteractive commented on Jun 22, 2026

    @danielinteractive
    ContributorAuthor

    OK I figured it out with Copilot help... the handling of the string option is different between the workflows. The problem was the trailing newline, which was not stripped away here unfortuately. This works:

          deps-installation-method: |-
            staged-dependencies
    

    The - strips away the newline.

  4. llrs-roche commented on Jun 22, 2026

    @llrs-roche
    Contributor

    Thanks for reporting back the fix, I wasn't aware of this issue with |.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions