Closed ntluong95 closed 4 months ago
On that CI build, are you using the latest versions of Quarto CLI and the R quarto package?
Hi found the problem. It is due to yaml::read_yaml()
function using readLines()
function so special non UTF-8 characters from _quarto.yml
were not parsed properly. I changed readLines()
to readr::read_lines()
and it solved the problem
Where was that code exactly?
Hi, the one I am highlighting. Also, I just remembered that I also need to remove argument metadata in the function quarto::quarto_render(as_job = FALSE, metadata = metadata)
, not sure why but after removing it, I can run the code
wait so are you using a fork of the yaml package?
maybe there's an argument of that yaml function that we could use here?
or could you save your Quarto metadata with UTF8 encoding?
save Quarto metadata with UTF-8 encoding does not help. What I did was re-defining render_book()
function, in which I changed readLines()
to readr::read_lines()
when re-defining yaml::read_yaml()
function, also I removed metadata = metadata
argument in quarto::quarto_render()
function
Could you share an example config that leads to this problem, maybe built from the example book of babelquarto? This way I could try and solve it on babelquarto's slide so you don't have to maintain a fork of babelquarto.
please open a new issue if you can share an example config :smile_cat:
Hi Maëlle,
I am having a problem of rendering the book through Github Action. The book can be rendered locally without any error using function
babelquarto::render_book()
. However, when implementing on Github Action, I am encountering the following problemCould you please have a look to see what happened? Here is my github action
And here is my
_quarto.yml