Ben Marwick (email@example.com)
This repository contains the research compendium of our work on the 1989 excavation of Malakanuja II (Madjedbebe). The compendium contains all data, code, and text associated with this section of the publication:
Clarkson, C., Mike Smith, Ben Marwick, Richard Fullagar, Lynley A. Wallis, Patrick Faulkner, Tiina Manne, Elspeth Hayes, Richard G. Roberts, Zenobia Jacobs, Xavier Carah, Kelsey M. Lowe, Jacqueline Matthews, S. Anna Florin 2015 The archaeology, chronology and stratigraphy of Madjedbebe (Malakunanja II): A site in northern Australia with early occupation. Journal of Human Evolution Volume 83, June 2015, Pages 46–64 http://dx.doi.org/10.1016/j.jhevol.2015.03.014
How to use
Read the code, access the data
vignettes directory on GitHub for the source code that generated the figures and statistical results contained in the manuscript.
data directory to access the raw data discussed in the manuscript.
Install the R package
This repository is organized as an R package, providing functions and raw data to reproduce and extend the analysis reported in the publication. Note that this package has been written explicitly for this project and may not be suitable for more general use. To download the package source as you see it on GitHub, for offline browsing, use this line at the shell prompt:
git clone https://github.com/benmarwick/1989-excavation-report-Madjebebe.git
Or to install, build and use the package within R, use this line at the R prompt:
# install.packages("devtools") # which in turn needs Rtools (if Windows) or Xcode (if OSX) devtools::install_github("benmarwick/1989-excavation-report-Madjebebe", build_vignettes = TRUE)
Then you can read the text & figures using this line at the R prompt:
This R package has several depedencies that are listed below, some of which need to be installed manually if using this package from your local R installation.
Run the Docker container
This compendium is also available as a Docker container. The advantage of this format is that it includes this package and all its dependencies already installed, so you don't have to worry about those (e.g.
devtools Rtools, Xcode, JAGS, etc). OSX & Windows users should launch
boot2docker to access the Docker terminal, Linux users can just open any terminal). You can either generate the Docker container yourself using the Dockerfile included here, or for a quicker start, pull the image from the online registry and run the container using this line at the Docker prompt:
docker run -dp 8787:8787 benmarwick/mjb1989excavationpaper
Then you can interact with RStudio via your browser at localhost:8787 (on Linux) or http://192.168.59.103:8787/ (on Windows/OSX, or whatever address you get from
boot2docker ip at the shell prompt). Log in to RStudio with user:
rstudio and password:
rstudio. See the rocker-org Wiki for more details. In RStudio you'll see the
Rmd file for the manuscript and a directory for the raw data. You can knit the
Rmd file to produce the HTML file that reproduces the text, plots and other results of the analysis. You can also edit and run the
Rmd interactively in RStudio to explore the analysis further.
I developed and tested the package on this Docker container, so this is the only platform that I'm confident it works on, and so recommend to anyone wanting to use this package to generate the vignette, etc.
Text: CC-BY-4.0 http://creativecommons.org/licenses/by/4.0/
Code: MIT http://opensource.org/licenses/MIT year: 2015, copyright holder: Ben Marwick
Notes and resources
The issues tracker is the place to report problems or ask questions
See the repository history for a fine-grained view of progress and changes.
The organisation of this compendium is based on the work of Carl Boettiger
R Session Information
sessionInfo() ## R version 3.1.2 (2014-10-31) ## Platform: x86_64-pc-linux-gnu (64-bit) ## ## locale: ##  LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=C ##  LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C ##  LC_PAPER=C LC_NAME=C LC_ADDRESS=C ##  LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C ## ## attached base packages: ##  grid stats graphics grDevices utils datasets methods ##  base ## ## other attached packages: ##  dplyr_0.4.1 rioja_0.9-3 ##  analogue_0.16-0 vegan_2.2-1 ##  lattice_0.20-29 permute_0.8-3 ##  RColorBrewer_1.1-2 reshape2_1.4.1 ##  bcp_3.0.1 Rcpp_0.11.4 ##  iterators_1.0.7 foreach_1.4.2 ##  BEST_0.2.2 rjags_3-14 ##  MCMCpack_1.3-3 MASS_7.3-37 ##  coda_0.17-1 scales_0.2.4 ##  ggplot2_1.0.0 mjb1989excavationpaper_0.0.0.9000 ##  Cairo_1.5-6 knitr_1.9 ## ## loaded via a namespace (and not attached): ##  DBI_0.3.1 Matrix_1.1-5 assertthat_0.1 brglm_0.5-9 ##  cluster_2.0.1 codetools_0.2-10 colorspace_1.2-4 compiler_3.1.2 ##  devtools_1.7.0 digest_0.6.8 evaluate_0.5.5 formatR_1.0 ##  gdata_2.13.3 gridExtra_0.9.1 gtable_0.1.2 gtools_3.4.1 ##  htmltools_0.2.6 labeling_0.3 lazyeval_0.1.10 magrittr_1.5 ##  mgcv_1.8-4 munsell_0.4.2 nlme_3.1-119 parallel_3.1.2 ##  plyr_1.8.1 princurve_1.1-12 proto_0.3-10 rmarkdown_0.5.1 ##  stringr_0.6.2 tools_3.1.2 yaml_2.1.13