jimhester / knitrBootstrap

A framework to create bootstrap styled HTML reports from knitr Rmarkdown.
Other
274 stars 61 forks source link

No spacing between chunks and text #63

Open naruchan opened 10 years ago

naruchan commented 10 years ago

I'm using the latest dev version and for some reason, the output of the HTMLs being rendered all lack spacing between chunks, text, and plots. I checked the cars example and it doesn't look like this. I don't see an option to change the spacing either. See screenshot for an example.

screenshot from 2014-09-12 11 00 15

lcolladotor commented 10 years ago

@naruchan I bet that the author of the package is going to ask you for a small reproducible example.

Anyhow, using

browseVignettes('knitrBootstrap')

the cars example looks like this:

screen shot 2014-09-12 at 11 28 14 pm

Reproducibility info

From the example

screen shot 2014-09-12 at 11 32 51 pm

R info

> library('knitrBoostrap')
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] knitrBootstrap_1.0.0

loaded via a namespace (and not attached):
[1] digest_0.6.4    evaluate_0.5.5  formatR_1.0     htmltools_0.2.6 knitr_1.6.18    markdown_0.7.4  rmarkdown_0.3   stringr_0.6.2  
[9] tools_3.1.1    
jimhester commented 10 years ago

I think I adjusted the spacing at some point and haven't updated the examples. If you prefer more spacing you can do so with a simple css rule by changing the default padding in between the r chunk divs.

naruchan commented 9 years ago

@lcolladotor thanks for the heads up and example. This was my first post here on GitHub, but I'll definitely make sure to do that next time!

@jimhester Ah okay, that works. Just wasn't sure if the lack of spacing was intended. Thanks!

aloboa commented 5 years ago

The problem of the lack of space between R code and R output chunks is still there. I find it was much better as you have in your examples (and even better in http://rpubs.com/jimhester/6826), Not having space between the blocks makes the document more difficult to read.

Unfortunately, I do not know how to aplly your fix "simple css rule by changing the default padding in between the r chunk divs"
Could you just leave it as it was or elaborate a bit on how to fix this issue?