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
The last line above was put in as a test to help track down an issue.
When I run this workflow, it runs without error. However, if I then install quarto and attempt to render a document:
# install quarto
- name: Install quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Change ImageMagick policy to allow pdf->png conversion.
run: |
sudo sed -i 's/^.*policy.*coder.*none.*PDF.*//' /etc/ImageMagick-6/policy.xml
- name: Make tutorials
run: |
echo "library(quarto); quarto_render(\"index.qmd\")" | R --no-save --no-restore;
If that document includes an R chunk that includes cmdstanr::cmdstanr_example(), it fails with the following:
Error in `if (stancflags_local != "") ...`:
! the condition has length > 1
Backtrace:
1. cmdstanr::cmdstanr_example()
2. cmdstanr::cmdstan_model(tmp, force_recompile = force_recompile)
3. CmdStanModel$new(...)
4. cmdstanr (local) initialize(...)
5. self$compile(...)
This error seems to be as a result of the call to cmdstanr:::get_cmdstan_flags("STANCFLAGS") returning a vector of strings when only a single string seems to be expected.
This what is returned:
Expected behavior
The example model to be compiled
Operating system
Ubuntu via github actions
CmdStanR version number
2.35.0
Additional context
I realize that the above is not really a reproducible example, but I suspect that to some the issue might be very obvious. If not, I am happy to try to make a more minimum reproducible example
The text was updated successfully, but these errors were encountered:
Describe the bug
I am trying to incorporate
cmdstanr
in a github actions workflow.Parts of my workflow include:
The last line above was put in as a test to help track down an issue.
When I run this workflow, it runs without error. However, if I then install quarto and attempt to render a document:
If that document includes an R chunk that includes
cmdstanr::cmdstanr_example()
, it fails with the following:This error seems to be as a result of the call to
cmdstanr:::get_cmdstan_flags("STANCFLAGS")
returning a vector of strings when only a single string seems to be expected.This what is returned:
To Reproduce
See above
Expected behavior
The example model to be compiled
Operating system
Ubuntu via github actions
CmdStanR version number
2.35.0
Additional context
I realize that the above is not really a reproducible example, but I suspect that to some the issue might be very obvious. If not, I am happy to try to make a more minimum reproducible example
The text was updated successfully, but these errors were encountered: