Coder Social home page Coder Social logo

vivarmdreportmarketplace's Introduction

Viva RMarkdown Report Marketplace

About

The Viva RMarkdown Report Marketplace allows you to download and contribute community RMarkdown Report templates for the Viva R eco-system. You can use this repository in conjunction with the wpa R library to design and generate your own static HTML reports.

RMarkdown

RMarkdown templates are versatile and powerful documents that can be used to generate static HTML reports and dashboards. An RMarkdown file is a plain-text file with a document header and code-narrative structure (similar to a Jupyter Notebook), which R then uses to generate the report.

Vision

The goal of this project is two-fold:

  • Provide a greater choice of reports through the Report marketplace
  • Enable users to easily customize an existing report and contribute this back to the community

Instructions

Each report template subdirectory should have the following elements:

  • At least 1 RMarkdown (.Rmd) containing the report content
  • README.md - describes the report and provides documentation on:
    • parameters
    • whether the report is a standard RMarkdown report or something else, e.g. a flexdashboard
    • description of the report output
    • details around data preparation
    • an example of the output report
    • example snippet for running the report

Note that your pull request may be rejected if you do not include all of the above information.

See minimal-example in this repository for an example.

How to use a report template

  1. Clone this repository to your local machine. You can either clone the repository using GitHub Desktop, or you can download the repository as a zipped folder.
  2. Select the RMarkdown report template that you would like to use, and copy this to your working analysis directory. For more information about how to set up your working analysis directory, please read this article on setting up R analysis directories.
  3. Assuming you have already installed the wpa package, load it with the following code:
library(wpa)
  1. When you run the report with wpa::generate_report2(), provide the path to the template in the argument and all the necessary parameters. An example code would be as follows:
generate_report2(
  output_format = rmarkdown::html_document(toc = TRUE, toc_depth = 6, theme = "cosmo"),
  output_file = "minimal report.html",
  output_dir = here("templates", "minimal-example"), # path for output
  report_title = "Minimal Report",
  rmd_dir = here("templates", "minimal-example", "minimal.Rmd"), # path to RMarkdown file,

  # Custom arguments to pass to `minimal-example/minimal.Rmd`
  data = sq_data,
  hrvar = "Organization",
  mingroup = 5
)

The arguments that you should pass to each report will differ depending on the report template. Please read the corresponding README file in each report template subdirectory for the appropriate example.

For a full example on how to run the minimal.Rmd example in this directory, see example-usage.R located at the root of this repository.

Report Templates

The current report templates are available:

References

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

vivarmdreportmarketplace's People

Contributors

martinctc avatar microsoft-github-operations[bot] avatar microsoftopensource avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gonetak

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.