-
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
Before_chapter_script doesn't work? #36
Comments
You didn't miss anything. I just didn't implement it for the case |
After this change I'm getting:
|
Ah, fixed now |
I know this is an old post; but I'm having this same issue. My before chapter script is not executing. I have the following set up:
I've tried everything to fix it to no avail. I would appreciate any help you may extend. Might it possibly be the fact that I am using a "new_session: yes" for a K-M build mode? I saw that it was an issue when "new_session = TRUE"? I tried setting to TRUE/true in the yml and nothing. |
I can't reproduced. This is working fine for me using the demo book. knitr::opts_chunk$set(echo = FALSE) and after building the book, all chunk source are correctly not shown. Can you try that too ? Also can you ask on the RStudio community or in a new issue, instead of an old issue ? It will be easier to continue discussion. Thank you. |
@dereckdemezquita I don't recommend using |
I think this will only do that if
If one wants to follow this way, I would advice to use a child document, or import the ```{r, include=FALSE, echo=FALSE, code = xfun::read_utf8('_common.R')}
``` or ```{r, child="_common.Rmd"}
```
Easier debug of Rmarkdown project seems a topic to invest in. |
@hadley That's no longer true, and @cderv was correct. The scripts will be Re: debugging, the issue is tracked in #620. That's something I definitely want to improve, and I'm pretty sure it can be improved (e.g. when an error occurs, it can automatically navigate to the relevant lines in the original Rmd file). |
@yihui I didn't know that because you don't blog about it 😄 Regardless, I've now been burned by that behaviour, so I'm unlikely to use |
@hadley Sorry, but I didn't know you were burned. Claus and Bob reported that this issue bothered them, so I made the change for them, but I had no idea how many more users were burned... |
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. |
In
_bookdown.yaml
I have:and in
_common.R
I have:but the chunk options don't seem to have any affect. What am I missing?
The text was updated successfully, but these errors were encountered: