-
Notifications
You must be signed in to change notification settings - Fork 4.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
failing to compile the book #608
Comments
I got the PDF, after some errors, some very similar to yours. In my case the error messages was not very clear about the error itself and about the error line. So my advice is to check the root folder after a error. If you look closely you have strings.Rmd and strings.knit.Rmd (or something like that) files in the folder. Of course this in some cases could not be the best, or even the correct solution. But it worked for me, the only trick that works, after many tries, uploading packages and Latex. |
The method suggested by @Facottons can be used to render the book in case of errors I guess. But I was trying to pinpoint the problem although I'm not good at debugging R. Based on the discussion regarding how ordered factors handled, I tried to verify that was indeed the problem. I changed line 121 in model-building.Rmd into this (color, cut and clarity are wrapped around
and it still I get error in line 128. The code below cannot accomadete the model well.
|
Forget to mention, if I comment out the chunk (or convert into a regular code block) between lines 126-134, the book compiles without problems. |
one maybe naive question, because I get also the same error of "lines 144-151 (model-building.Rmd) ". How can I completely comment out this file (model-building.Rmd) ? I am interested in other parts of the more, so I can live without this! Thanks! |
I also had trouble compiling the book, but only as a pdf. Adding
grid <- diamonds2 %>% replaced with this: grid <- diamonds2 %>%
|
So as a follow-up, on Ubuntu I needed to
in addition to the |
I'll try to help before I ask for help. For those of you having issues with the strings.Rmd file, you should run the following lines:
That should get the strings chapter to compile without error. Additionally, you should look at the packages listed under the Imports section of the DESCRIPTION file and be sure those are installed as well. Having said that, I could use some help with the following error:
The _book directory exists because other files are in there, however the pdf is missing. EDIT: I finally have a complete PDF. For reference, I'm using MiKTeX 2.9 and I had to run the |
@jrneal1 @alperyilmaz Great to hear you were able to create a complete pdf! Would you be willing to share your knitted pdf version with others? I only ask because I am an R novice and not familiar with the code to create a pdf from markdown, but would like to be able to highlight/annotate on a personal pdf copy to help me learn. |
@zoe-xanthellae I would prefer to teach you how to fish rather than give you a fish. At least make a stab at it and post any issues. |
Thanks @Ranae, much appreciated! |
I cloned 0f956d6 from this repo and when I try to compile the book with
bookdown:::serve_book()
, in both Windows and Linux, I got the same error.The error message was:
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: