How to solve the "file name conversion problem -- name too long?" error when rendering a publication in Bookdown?

738 views Asked by At

I'm having problems to render a publication in Bookdown. The error message sugests a kind of size problem in some file, but I have no idea how to identify it.

Found these related answers: answer1, answer2, answer3, but none of them solved my problem.

Thanks for any help.

Error in file.exists(f) : file name conversion problem -- name too long? Calls: local ... local_resources -> grep -> is.factor -> unique -> file.exists Interrupted execution Error: bookdown::render_book() failed to render the output format 'bookdown::gitbook'. Interrupted execution Exited with status 1.

This is my _bookdown.yml file configuration:

delete_merged_file: true
new_session: yes
language:
  label:
    fig: 'Figura '
    tab: 'Tabela '
  ui:
    chapter_name: "Capítulo"

And this is my _output.yml file:

  lib_dir: assets
  css: style.css
  includes:
  config:
    toc:
      before: |
        <li><a href="./">Relatório Geral de Gastos Públicos em 2021"</a></li>
      after: |
        <li><a href="https://bookdown.org/yihui/bookdown/" target="blank">Published with bookdown</a></li>
    download: null
    sharing:
      facebook: no
      linkedin: yes
      whatsapp: yes
    info: no
bookdown::pdf_book:
  #pandoc_args: --top-level-division=chapter
  keep_text: yes
  keep_tex:  true
  includes:
    in_header: preamble.tex
  template: template.tex
  latex_engine: xelatex
  citation_package: natbib
  extra_dependencies: ["flafter"]
  toc_unnumbered: no
  fig_caption: yes
  toc_depth: 3
bookdown::epub_book: default

0

There are 0 answers