Skip to content
Tiago Chedraoui Silva edited this page Feb 25, 2015 · 7 revisions

biOMICS

Developing with Rstudio

Tools that will be used in our project

Installing packages necessary for the project

install.packages("devtools")
install.packages("testthat")
devtools::install_github("MangoTheCat/testCoverage")
install.packages("roxygen2")
install.packages("rmarkdown")
install.packages("knitr")
install.packages("RCurl")
install.packages("shiny")
install.packages("rjson")
install.packages("lintr")
install.packages("lint")
install.packages("reutils")
install.packages("downloader")
install.packages("XML")
devtools::install_github("rstudio/shinydashboard")
devtools::install_github("rstudio/DT")

Executing coverage script test

source('~/R/coverage.R') 

Useful commands

devtools::build() # build package
devtools::test() # execute unit test
devtools::use_vignette(name)
lint(file = ".", style = lint.style, recurse = TRUE, text = NULL) # verify style

File structure

  • R - main R code
  • inst/app - shiny UI code
  • tests - Has testthat folder with unit tests and testthat.R calling tests to be executed
  • man - manual pages created by rdoxygen2
  • R/coverage - all output created by testcoverage
  • vignettes - contains package vignette - Detailed document about the package
Clone this wiki locally