Error in generation of bookdown

Asked

Viewed 75 times

2

I’m trying to create a bookdown (from the package https://bookdown.org/yihui/bookdown/). When I create the book it returns the error below. I have already set the parameters: output: bookdown::gitbook and site: bookdown::bookdown_site. Also I deleted the main file several times, and did not resolve the issue. Does anyone know how to help?

Error in render_book("index.Rmd", output_format = output_format, envir = envir) : 
The file _main.Rmd exists. Please delete it if it was automatically
generated, or set a different book_filename option in _bookdown.yml. 
If you are sure it can be safely deleted, please set the option 'delete_merged_file' 
to true in _bookdown.yml.
Calls: <Anonymous> ... <Anonymous> -> in_dir -> render_book_script -> 
render_book
Execu��o interrompida

Exited with status 1.

1 answer

2

The error suggests for you to delete the file _main.Rmd and put delete_merged_file = TRUE.

If you can’t write the file _main.Rmd, use a different book_filenamein the _bookdown.yml

Browser other questions tagged

You are not signed in. Login or sign up in order to post.