You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Install older pandoc will be overwritten by setup-r-dependencies System dependencies installation on Linux #710
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.
changed the title [-]Install older pandoc will be overwritten by setup-r-dependencies dependenciesi installation on Linux[/-][+]Install older pandoc will be overwritten by setup-r-dependencies dependencies installation on Linux[/+]on Mar 20, 2023
changed the title [-]Install older pandoc will be overwritten by setup-r-dependencies dependencies installation on Linux[/-][+]Install older pandoc will be overwritten by setup-r-dependencies System dependencies installation on Linux[/+]on Mar 20, 2023
Yeah, I am not sure what we can do with this. Maybe we should switch to downloading pandoc from their GH releases, and install it in /usr/local/bin, then it will take priority over the DEB package.
Maybe we should switch to downloading pandoc from their GH releases, and install it in /usr/local/bin
setup-pandoc already download from GH releases I believe.
I am always suprised by pak installing Pandoc because this is a package requirement for running some tools. It is not needed for compilation like other tools.
Maybe there is nothing to do and we can just document. This issue will happen for people using older pandoc than the one available in the Linux OS system repo. I acknowledge this is quite specific usage.
This will be solved by the next r-lib/actions release, coming probably today. Now setup-pandoc installs a static binary of pandoc, and puts its path to the beginning of PATH, so it should take precedence over OS packages.
So I am closing this now, but please reopen if you still have issues.
Activity
[-]Install older pandoc will be overwritten by setup-r-dependencies dependenciesi installation on Linux[/-][+]Install older pandoc will be overwritten by setup-r-dependencies dependencies installation on Linux[/+][-]Install older pandoc will be overwritten by setup-r-dependencies dependencies installation on Linux[/-][+]Install older pandoc will be overwritten by setup-r-dependencies System dependencies installation on Linux[/+]gaborcsardi commentedon Mar 20, 2023
Yeah, I am not sure what we can do with this. Maybe we should switch to downloading pandoc from their GH releases, and install it in
/usr/local/bin, then it will take priority over the DEB package.cderv commentedon Mar 20, 2023
setup-pandocalready download from GH releases I believe.I am always suprised by pak installing Pandoc because this is a package requirement for running some tools. It is not needed for compilation like other tools.
Maybe there is nothing to do and we can just document. This issue will happen for people using older pandoc than the one available in the Linux OS system repo. I acknowledge this is quite specific usage.
gaborcsardi commentedon Mar 20, 2023
Yeah, sorry, I meant downloading the static linux binary, e.g. pandoc-3.1.1-linux-amd64.tar.gz and putting it in
/usr/local/bin.cderv commentedon Mar 20, 2023
Oh I see. This way it could / would be put in PATH above the other one. That would probably solve the issue indeed.
gaborcsardi commentedon Feb 27, 2024
This will be solved by the next
r-lib/actionsrelease, coming probably today. Nowsetup-pandocinstalls a static binary of pandoc, and puts its path to the beginning ofPATH, so it should take precedence over OS packages.So I am closing this now, but please reopen if you still have issues.
github-actions commentedon Mar 13, 2024
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue