Skip to content

Install older pandoc will be overwritten by setup-r-dependencies System dependencies installation on Linux #710

@cderv

Description

@cderv

In R Markdown ecosystem we are testing older pandoc version. This may not be a wide usage.

I was trying to understand why I lost pandoc-citeproc availability with 2.73 and 2.5 and it took me time to understand that using r-lib/actions/setup-r-dependencies@v2 will try to install pandoc from Ubuntu repo (which is currently version 2.9.2.1).

This will make any version installed with r-lib/actions/setup-pandoc@v2 in a step before to be installed over and make rmarkdown use this latest one, which is unexpected.

Opening this issue to share this problem. Don't know if there could be a solution. Several ideas:

  • not install pandoc in r-lib/actions/setup-r-dependencies@v2 with pak if already installed
  • Add as switch to opt-in a removal of Pandoc r-lib/actions/setup-r-dependencies@v2

Currently, our solution is to uninstall Pandoc after r-lib/actions/setup-r-dependencies@v2 and installing manually using the setup-pandoc action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions