Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove bookname.rds file after render_book(new_session = T) #430

Closed
dongzhuoer opened this issue Aug 5, 2017 · 4 comments
Closed

remove bookname.rds file after render_book(new_session = T) #430

dongzhuoer opened this issue Aug 5, 2017 · 4 comments
Milestone

Comments

@dongzhuoer
Copy link
Contributor

dongzhuoer commented Aug 5, 2017

After you run render_book(new_session = T), there will be a bookname.rds file in the output directory. I think this file is useless after the book is build, so it should be removed to leave a tidy output directory.

@yihui
Copy link
Member

yihui commented Aug 18, 2017

It should not be deleted. It is used to store some intermediate metadata (mainly HTML dependencies of HTML widgets).

@yihui yihui added this to the v0.5 milestone Aug 18, 2017
@yihui yihui closed this as completed Aug 18, 2017
@dongzhuoer
Copy link
Contributor Author

dongzhuoer commented Sep 26, 2017

But I still don't think it should stay in the project's directory. If it's needed for the book to be read (open by browser), it should be moved to the _book folder. If it's needed for rebuilding the book, it should be moved to the _bookdown_files folder. @yihui

@yihui
Copy link
Member

yihui commented Sep 26, 2017

Yes, it can be moved back and forth. I can take a look if you can send a pull request, otherwise I won't have time for this in the foreseeable future. It is a single file after all, and I don't feel the pressure about how it seriously messes up the whole directory. Thanks!

jennybc added a commit to jennybc/happy-git-with-r that referenced this issue Oct 2, 2018
jennybc added a commit to rstats-wtf/what-they-forgot that referenced this issue Oct 2, 2018
@github-actions
Copy link

github-actions bot commented Nov 6, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants