Code Monkey home page Code Monkey logo

knitr-book's Introduction

Dynamic Report Generation with R

This book is mainly about the R package knitr, which is on CRAN (http://cran.r-project.org/package=knitr) and has detailed documentation and examples (http://yihui.name/knitr/). I think it may be a good idea to organize these materials in a better form, and explain more details about knitr which are not covered in the online documentation. It is also a good opportunity to eat my own dog food and see how knitr performs in the real world.

License

All the content in this repository is licensed under CC BY-NC-SA 3.0, and you are always welcome to participate the writing by forking this repository.

Ebook

I do not know if this repository can grow into a real book in the end. At the moment, it can be easily turned into an ebook with pandoc, which you can read on iPad or Kindle or other electronic book readers. There are also other formats that you can use, such as HTML or GitHub markdown. The conversion is simple if you have installed pandoc:

./knit epub    # EPub ebook
./knit html    # a single html page
./knit pdf     # PDF through XeLaTeX
./knit github  # markdown for github

I use the above commands to knit my source documents and convert them into different formats. I work under Ubuntu, and the bash script ./knit may not work for your OS (it is essentially an R script), but you are encouraged to read its source code to know what is happening behind the scene.

All source files are under the source directory, and all the rest of markdown files are the output from knitr. If you want to modify anything in this repository, please always go to the source directory. In other words, only manage the source, and forget about the output.

Help me

Currently I need help on designing the CSS styles for the HTML and EPub output; I do not have much time for that. The default style is not optimal for reading. You are welcome to contribute if you know pandoc and CSS, and you can probably look at bootstrap for an appealing design.

If you have more time to kill, I also need help on the TeX style so that the PDF output looks better. I just picked up three free fonts in my library and throwed them to XeLaTeX.

Contact

GitHub issues (https://github.com/yihui/knitr-book/issues) is the preferred way for feedbacks. You can also reach me by email:

echo oybuwycxy.trpb | tr bopcrbtucwxyc+ exmiaen@iyuih

knitr-book's People

Contributors

karthik avatar ramnathv avatar yihui avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.