Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fwhigh committed Mar 13, 2014
1 parent bc05b22 commit 3d1f231
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ You can also run them locally on your machine. Requires XQuartz for Mac systems
install_github("MedicMobileImpact","fwhigh")
opencpu$browse("/library/MedicMobileImpact/anc")
opencpu$browse("/library/MedicMobileImpact/vaccine")

To save a record of your work, click on the righthand panel in the web app, select all (command-a), and print (command-p or File → Print).

## For administrators

Expand All @@ -30,26 +32,5 @@ In R:
install.packages("/FULL/PATH/TO/MedicMobileImpact", repos = NULL, type="source")
opencpu$browse("/library/MedicMobileImpact/anc")
opencpu$browse("/library/MedicMobileImpact/vaccine")

### Instructions on running the worksheet in R/RStudio

Step 1. Download this repository. On the GitHub site, you can download a zipped version of this repo, or if you are a savvy git user, you can clone it to your desktop.

Step 2. Download and install R.

http://cran.r-project.org/

And RStudio.

https://www.rstudio.com/

Step 3. Open RStudio, and install the knitr package. Do this by clicking _Packages_ tab, then click the _Install Packages_ button. Search for "knitr", make sure _Install dependencies_ is checked, and click _Install_. This procedure has been tested using knitr 1.5. To make sure you have the latest knitr update, in RStudio in the _Packages_ tab click _Check for Updates_ and follow the instructions.

Step 4. Enable knitr in RStudio. Do this by clicking _Preferences_, then clicking the _Sweave_ tab. Next to "Weave Rnw files using", select knitr from the drop-down menu. Click _Apply_ and _Ok_.

Step 5. Open the markdown source document (e.g. "Medic_Mobile_ANC_worksheet.Rmd"), in RStudio.

Step 6. In Rstudio, compile and execute the ANC knitr document by clicking the _Knit HTML_ button. You should see a window pop up that shows the formatted version of the markdown document. This is the "Preview HTML" window. Read through this document carefully and follow the instructions. It will require you to switch between itself, the markdown source in RStudio and Spectrum (command-tab and command-tilde are your friends). Whenever you make a change in the markdown source document in RStudio, make sure to save it and then switch to the "Preview HTML" window and click refresh (it's a typical refresh arrow circle icon). "Medic_Mobile_ANC_worksheet.Rmd" and "Medic_Mobile_Vaccine_worksheet.Rmd" are living documents that compute statistics you need to do the projections on the fly, and present instructions and other information in an easy to read format.

Step 7. When you're done going through the worksheet, in "Preview HTML" click the "View page in system browser" icon, and the page will show up in your default browser. You can save the document as PDF here if you want to have a record of your Spectrum projection session.

0 comments on commit 3d1f231

Please sign in to comment.