Comments (9)
Hi @mbojan ,
This is an old issue and not suitable to ask for something like that 4 years later. Moreover, yes this is supposed to work.
Please open a new issue and provide some more information (a reproducible example would be great) so that we can look into it.
Thank you !
from bookdown.
This still isn't working for me - I have
knitr::opts_chunk$set(
comment = "#>",
collapse = TRUE,
cache = TRUE
)
but the chunks aren't getting the style I want (or cached)
from bookdown.
Also this now seems to be running in the main directory (instead of _book
) so the chapter number is incorrect, and I get intermediate outputs in the root dir
from bookdown.
Hmm, I cannot reproduce it with your r4ds repo. The _common.R script is inserted before chapters as expected. Intermediate outputs are also moved to _book
. *_files/
and *_cache/
are not moved, though, but that is intentional (I guess I could move them if you want).
from bookdown.
Hmmm, now it looks ok for me too. Maybe I was looking at a cached version?
I did expect the _files/
and _cache/
to go in _book
too. Can you explain why they're not moved automatically?
from bookdown.
I was simply waiting for you to complain about it :)
For the merge-and-knit approach, these are only two directories, so this does not bother me too much. I know it will be messy for the knit-and-merge approach, and apparently you do not like it, so I'll move them. The Rmd's are compiled in the root directory, and the outputs are moved to _book
later. If I move _cache
to _book
, I'll have to move it back to the root directory the next time I compile an Rmd (then move it to _book again).
from bookdown.
@yihui , is this resolved? I believe I ran into the same problem. I have new_session: true
in _bookdown.yml
and the before_chapter_script
is not executed when previewing a chapter in RStudio (with the "Knit" button).
from bookdown.
You are right @cderv , apologies. New issue incoming.
from bookdown.
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.
from bookdown.
Related Issues (20)
- [FR] label chunk with an object HOT 5
- CSS for gitbook output: YAML, length of <embed> elements and indentation of references HOT 5
- [FR] Pandoc 2.19+ allows to opt-out mathml in epub3 format and choose other math method too
- Text references don't work with multiline lines HOT 7
- Search in bs4_book often missing results HOT 6
- [FR] Two-column layout for .docx files HOT 1
- [FR] More flexible table of contents in tufte_html_book HOT 4
- How could I add a link for the "Edit" icon to private Bitbucket repo? HOT 11
- .unlisted and .unnumbered not excluding tagged headers from TOC HOT 5
- [FR] Add support for the YALM setting "language: ui: references_name" to change the title of references section in html output HOT 7
- Image embeded in flextable lost in .docx output HOT 3
- [FR] Typst Support HOT 3
- Equation in book is broken HOT 3
- [FR] Allow to use `$$` for numbering equation in **bookdown**
- R4.3 error if multiple files are passed to `render_book` without an `output_format` specified HOT 2
- crosstalk html widget doesn't display the figure caption HOT 3
- html output error with echo=FALSE option HOT 1
- [FR] Multi language support
- Square brackets around citations in text HOT 2
- Cannot generate pdf via "server" but only html despite I tried probably all suggestions. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookdown.