Repo Owner: Scott Jackson @jacksonsj
- Download R from http://cran.us.r-project.org/
- Install R. Leave all default settings in the installation options.
- Download RStudio from http://rstudio.org/download/desktop and install it. Leave all default settings in the installation options.
- Open RStudio
- Go to the “Packages” tab and click on “Install Packages”. The first time you do this you’ll be prompted to choose a CRAN mirror. R will download all necessary files from the server you select here. Choose the location closest to you.
- Type in "devtools". Ensure that "Install dependencies" is checked, and click "Install". If you get permission errors while installing packages, close RStudio and reopen it with administrator privileges.
- Open a new R Script in RStudio.
- Copy and paste the following into that new file:
library(devtools)
install_github(repo = "https://github.com/pepfar-datim/datapackr.git", ref = "master")
library(datapackr)
- Hit the
Run
button. - If you are prompted in the Console to select which packages to update, just hit Enter to bypass.
- If this presents issues, contact the development team either through a GitHub ticket, or via DATIM Support (DATIM users only).
- If the package loads without issue, restart your R session.
- Copy, paste, and run the following code in RStudio:
d <- unPackData()
- When prompted, select the location of the file you would like to check. This must be saved as an XLSX file.
- Once automated reviews are completed, you can see any warnings that were generated in the RStudio Console.
Have a question? Find us on GitHub or DATIM Support (DATIM users only).