GithubHelp home page GithubHelp logo

research-it-swiss-tph / stphtoolbox Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 1.68 MB

Swiss TPH R toolbox for reproducible research

License: Other

R 16.21% Lua 1.19% HTML 28.31% JavaScript 54.29%
quarto r

stphtoolbox's Introduction

stphtoolbox

The Swiss TPH Toolbox (stphtoolbox) is an R package designed to facilitate reproducible research by providing custom document templates and graphic representations.

Features

  • ๐Ÿ“„ Document templates: streamline your research workflows with custom Swiss TPH templates (Word, Powerpoint).
  • ๐Ÿ“Š Graphic representation: leverage the capabilities of ggplot2 and create visually appealing graphics in accordance with the Swiss TPH branding guidelines.

About

This package was developed on a Windows 10 x64 (build 19045) operating system, with R version 4.3.2 (2023-10-31 ucrt), RStudio version 2023.09.1 Build 494 and Rtools43. For Windows users, it is recommended to install Rtools first, followed by R and RStudio in that order for a smoother experience.

Installation from GitHub

To install the stphtoolbox package on your workstation, you have two options:

Download and build locally

Download the master branch as a ZIP file and build the package locally.

Install the latest released version (preferred option)

Install the package directly from the GitHub repository using the following code:

library(devtools)
devtools::install_github("Research-IT-Swiss-TPH/stphtoolbox")

Documentation

An index of available documentation for the stphtoolbox is displayed using the help() function

help(package="stphtoolbox")

Usage example

Generate a Word report using the generate_word_report function:

# Load the stphtoolbox package
library(stphtoolbox)
# Generate a Word report
stphtoolbox::generate_word_report(qmd_filename  = "my_content_input.qmd",
                                  docx_filename = "my_word_report")

This will create a Word document by processing the content of your specified Quarto document "my_content_input.qmd" and save the resulting Word report as "my_word_report.docx" in your current working directory.

Package development

Bug reports and suggestions

If you encounter bugs or have suggestions for improvements, please open an issue. Your feedback is valuable and helps improving the package.

Contributing

Pull requests are welcome on the development branch. For major changes, please open an issue first to discuss what you would like to change.

stphtoolbox's People

Contributors

thaliehln avatar

Watchers

Aurelio avatar

Forkers

samwel2000

stphtoolbox's Issues

Leverage Quarto (dynamic reporting) for reproducible research

Software installation and configuration

  • Check up to which RStudio version Quarto is back compatible
  • Check what RStudio version is available on the software centre => future update scheduled in Q1 2024
  • Test Rtools / R / Rstudio installation on test server for IT before packaging for availability in the software centre

R package

Develop a R package that contains data visualisations aligned with Swiss TPH's graphical chart.
For instance, see HTML visualisation below

  • Create R package on GitHub
    Package available at the following link
  • Create initial DOCX template inspired from the Swiss TPH graphical chart link
  • Create R function to apply the Swiss TPH template to any Quarto document link
  • Create minimal example in README file
  • Create simple visualisation functions (based on ggplot2)
  • Add a minimal example retrieving and displaying data from ODK and from REDCap
  • Explore adding templates from journals (supported journals are listed here)

Image

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.