Skip to contents

Function and styling of reports and tables for CorEvitas, LLC

To get started, you will need to install the package from our github private repo.

Installation

If you are new to GitHub, please first create an account and then contact Ryan Harrison at to be added to the CorEvitas GitHub organization.

Next you need to generate your private authentication token. Go to your account settings > developer settings > personal access tokens > generate new token.

WHEN CREATING YOUR TOKEN, SELECT ALL OF THE BOXES TO GIVE THE TOKEN PROPER ACCESS TO YOUR ACCOUNT!

If you fail to do this, then you will receive the following 404 error when trying to install:

Error: Failed to install 'unknown package' from GitHub:
  HTTP error 404.
  Not Found
  
  Did you spell the repo owner(`Corrona-IT`) and rep name (`tidycoRe`) correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.

The token only appears once so you need to save it somewhere safe to reuse it; preferably a password manager or vault. This token can be used to access any GitHub repo that your GitHub account has access to.

Then paste it within the following command in your R console:

devtools::install_github("Corrona-IT/tidycoRe", auth_token = "your_generated_auth_token", force = TRUE)

Helpful packages to go along with tidycoRe (that are not installed when tidycoRe is downloaded)

  • XML (for the flow chart creation)
  • tidyverse (Recommended packages for data manipulation)
  • arsenal (Recommended package for creating tables)
  • lubridate (Recommended package for manipulating dates)
  • broom (Recommended package for tidying regression model tables)
  • glue (Recommended package for concatenating strings)
  • haven (Recommended package for importing datasets from SAS, STATA, others)
  • tidymodels (Recommended packages for machine learning models in a tidy framework)
  • labelled (Recommended package for variable and value labels)