Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

installing ccdata

Jez Fabes edited this page Mar 6, 2017 · 13 revisions

Contents

  1. Installing ccdata
  2. Using ccdata
  3. Additional functions in ccfun

Install R and R studio

R which is a highly respected, free statistics package used by academics around the world. We recommend additionally installing RStudio --- a friendly interface to R.

  1. Download and install R from here

  2. Download and install RStudio. This is a nice shiny interface for R, and the easiest way to use it. Download it here. There should be an 'installer' for your operating system.

Operating specific instructions and links are detailed below

Windows

Install R by downloading and running this .exe file from CRAN. Also, please install the RStudio IDE.

Mac OS X

Install R by downloading and running this .pkg file from CRAN. Also, please install the RStudio IDE.

Linux

You can download the binary files for your distribution from CRAN. Or you can use your package manager (e.g. for Debian/Ubuntu run sudo apt-get install r-base and for Fedora run sudo yum install R). Also, please install the RStudio IDE.

Installing the ccdata package

You will need the devtools package: https://www.rstudio.com/products/rpackages/devtools/.

Within R Studio (main left-hand window) enter the following:

install.packages("devtools")    # installs devtools from CRAN
library(devtools)               # loads devtools

Once devtools is installed and made available, you will then need to install cleanEHR

install.packages("cleanEHR")
library(cleanEHR)               # loads cleanEHR

You can see more information on the cleanEHR package here.

Installing from CRAN

Within R Studio hit the Install option with the Packages tab and type cleanEHR into the search box. This will automatically install the latest version of cleanEHR and all dependencies.


Next