Skip to content

zhezhangsh/RoCAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoCA

Reporting of Custom Analysis

The goal of RoCA is to set up a paradigm of reproducible data analysis. It provides a framework for data analysts to conveniently re-run custom analysis using their own data and parameters. Each run will generates a self-contained output file folder and an index.html file as a summary report.

Download an example (unzip the file and open the index.html file to view report)


##### Table of contents - [How to use](#howto) * [Install R packages](#installR) * [Prepare for an analysis](#prepare) * [Generate a report](#report) - [Develop a template](#develop)
## How to use ### Install R packages

Use the code below to install default R packages. Please note that individual R Markdown templates might require extra packages. Read instruction of each template for details. Before start,

  • make sure that base R version 3.2.3 or newer was installed through RStudio or R Console
  • and open RStudio or R Console to start a new R session.

# install.packages(c('devtools', 'RCurl')); # if packages have not been installed
require(devtools); 
require(RCurl);

devtools::install_github("zhezhangsh/RoCA/R"); # Install the RoCA package itself from GitHub

# Install default packages from Cran, GitHub, or Bioconductor, used by the RoCA package and Rmarkdown templates
# Note that individual Rmarkdown templates might require more packages
installed <- RoCA::InstallDependency(reinstall=FALSE) # Use reinstall=TRUE to force re-installing all packages
### Prepare for an analysis
  1. Clone the whole RoCA GitHub repo

  2. Download and edit a YAML file

### Generate a report
  1. Use the RoCA::CreateReport() function

  2. Use RStudio

  3. Use the knitr::knit() function

## Develop a template

The R Markdown/YAML pair

Required YAML fields

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages