-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bs4_book error: Error in 1:max_n #1462
Comments
Thanks for the report. Can you provide a book project that reproduce this ? Can you share a github repo with your own project I can run otherwise ?
If we don't have access to a reproducible example, it would be useful if you could debug. It would be interesting to know the value of Lines 599 to 603 in 50a1c1e
You could run To help with debugging, here are some resources
thanks |
@cderv All the files are created using RStudio IDE, only "01-intro.Rmd" was changed to the possible problematic text. I'm not familiar with debug, thanks for your help! |
Thank you. So the problem happens because of the specific content of your files containing special characters
This part of the code Lines 596 to 607 in 50a1c1e
is supposed to automatically derive a description from the content by
So @yihui how would you go about this to get a automatic description strings for the metadata ? At least, I am thinking to avoid error by providing empty description (with a warning ?) if this fail. |
Basically this algorithm didn't take CJK languages into consideration (they don't use spaces as word separators). For the case of |
Here you go! #1463 |
Thanks for your work! |
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. |
Hi guys, when I compiled a bs4_book, I got an error, here is the traceback:
This error occurs when I compile a new chapter, but it didn't happen before I try to add this new chapter. But I've checked the texts and codes of this chapter, I found no typos or omissions.
As I check the original code of bs4_book.R, I found three places about
max_n
:But I still don't know how to fix the error. Any solution? Thanks!
Here is my sessionInfo:
The text was updated successfully, but these errors were encountered: