Did it happen after an update of bookdown ?
This error happen in the internal restore_links() function. Without the code, or generated html to debug it will be difficult for me.
Is the code available or would you be willing to share some file with me (privatly) ?
I am just unclear about this error:
Error in gzfile(file, "rb") : cannot open the connection
Calls: <Anonymous> ... unlist -> lapply -> FUN -> <Anonymous> -> readRDS -> gzfile
In addition: Warning message:
In gzfile(file, "rb") :
cannot open compressed file 'C:\Users\friendly\AppData\Local\Temp\Rtmp251xjv\file2d9054dd5799.rds', probable reason 'No such file or directory'
Execution halted
Not sure it comes for bookdown;
Difficult to look from afar.
If you are willing to debug you can step through restore_links but that won't be the clearer path:
For that you can run this to enter the debugger
debugonce("bookdown:::restore_links")
Something is not correct in the post processing for your project.
First of all can you try with previous version ?
remotes::install_version("bookdown", "0.20")
to see if you have the issue.
Helping as I can...