GithubHelp home page GithubHelp logo

autoreportr's Introduction

AutoReportR

Auto Generate PDF Reports With R, Markdown, and Bash

Required Libraries

You will need the knitr and markdown libraries installed in R
You will need the wkhtmltopdf package for Ubuntu

Process

First you will need to build out your markdown document
The markdown document allows you to combine both formatted text along with executable R code
For this example have the markdown document my_test.Rmd which will read one of the csv files in the TEMP directory and use the data to build charts and tables
The knitr library then allows us to convert that markdown document into a .md document, and then the markdown library is used to convert the .md file into a .html file.
Once the .html file is created it can be converted into a .pdf file by calling the wkhtmltopdf via Bash

Running The Full Example

  1. Make sure you are in the Auto_Reports directory
  2. Run the my_test.sh script from the command line, which will also call the converts.sh
  3. The completed reports will populate the REPORTS folder

Running A Manual Example

  1. In R convert your .Rmd file into a .md file: knit("test.Rmd")
  2. While still in R convert the .md file to a .html file: markdownToHTML("test.md", "test.html", options=c("use_xhml"))
  3. Leave R and enter your Ubuntu terminal making sure to navigate to the Auto_Reports directory
  4. Run ./my_test.sh from the command line
  5. The completed reports will populate the REPORTS folder

autoreportr's People

Contributors

gethydra 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.