This is an example of using Sweave to produce a set of individualised personality reports based.
data
folder includes the raw responses to the 50 item surveymeta
folder includes metadata about the personality testmain.R
imports the data and loads external packagesReport_Template.Rnw
includes the report LaTeX and R coderun.R
has the script to loadmain.R
and run Sweaverun1test.R
,run5test.R
andrunAll.R
run Sweave on one case, five cases, all the cases.
A copy of some sample reports can be found in the backup
folder.
For further explanation on how the source code works go to: http://jeromyanglim.blogspot.com
- Run
make
on the makefile to build one test report - Run
make test5
to build the first five reports - Run
make runall
to build all reports. Warning: To run the code for every report takes a while to run (perhaps around 10 to 30 minutes) - Run
make clean
to clean the.output
directory - Run
make backup
to copy the generated reports into the backup directory
The reports were built on a system running:
- R 2.11.1
- Rtools 2.11
- MikTeX 2.8
- Windows 7
It should run on other systems with R, a LaTeX distribution, and tools required for running make
.