Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: benmarwick/huskydown
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: untagged-fff3bfc916def70645e0
Choose a base ref
...
head repository: benmarwick/huskydown
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Mar 24, 2018

  1. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    85313ac View commit details
  2. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    dca93c7 View commit details
  3. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    a4473d9 View commit details
  4. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    4c7434d View commit details
  5. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    f65f742 View commit details
  6. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    bb8bbc4 View commit details
  7. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    e7aceb2 View commit details
  8. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    8a51fc6 View commit details
  9. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    9bdd1c8 View commit details
  10. Copy the full SHA
    a308618 View commit details
  11. Update thesis.R

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    c6d9060 View commit details
  12. Update _bookdown.yml

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    bdda2e2 View commit details
  13. Update DESCRIPTION

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    5706dae View commit details
  14. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    e237b86 View commit details
  15. Update .travis.yml

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    b5b984a View commit details
  16. Update .travis.yml

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    6a9e71e View commit details
  17. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    57452d6 View commit details
  18. Update .travis.yml

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    9253550 View commit details
  19. Update .travis.yml

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    1ae6c8a View commit details
  20. Update .travis.yml

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    82bab0b View commit details
  21. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    2b23e23 View commit details
  22. Update .travis.yml

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    aa36b8e View commit details
  23. Update .travis.yml

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    4608210 View commit details
  24. Update Dockerfile

    benmarwick authored Mar 24, 2018
    Copy the full SHA
    36b2420 View commit details
  25. New message for the combined commit

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    a909a1a View commit details
  26. add fonts locally from dissertate

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    3692a8a View commit details
  27. pull, merge, push

    Merge branch 'master' of https://github.com/benmarwick/huskydown
    
    # Conflicts:
    #	.travis.yml
    #	Dockerfile
    #	README.md
    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    e4cfad2 View commit details
  28. notes on tinytex and fonts in readme

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    7682e86 View commit details
  29. invalid travis

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    0b0cce8 View commit details
  30. the latest pandoc should be with rstudio

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    daf70dc View commit details
  31. remove comments from dockerfile RUN

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    babc0e5 View commit details
  32. install JQ for OSX so we can get a recent pandoc

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    72479e3 View commit details
  33. install RStudio on OSX to get pandoc

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    257cb04 View commit details
  34. brew for pandoc on OSX

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    0f0a249 View commit details
  35. not cask

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    e74d92c View commit details
  36. force brew

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    11465d5 View commit details
  37. brew link

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    fe4c3ef View commit details
  38. brew force

    Ben Marwick committed Mar 24, 2018
    Copy the full SHA
    c7509bd View commit details

Commits on Mar 25, 2018

  1. appveyor

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    bf31676 View commit details
  2. appveyor

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    61f36d5 View commit details
  3. appveyor

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    eadc47a View commit details
  4. appveyor

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    b294abb View commit details
  5. appveyor

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    c7660b0 View commit details
  6. appveyor

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    5465cde View commit details
  7. appveyor

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    7b17e5d View commit details
  8. delete pandoc

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    563ffe1 View commit details
  9. delete pandoc

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    56a55a1 View commit details
  10. link pandoc

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    8f0e87f View commit details
  11. appveyor

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    5521323 View commit details
  12. brew link

    Ben Marwick committed Mar 25, 2018
    Copy the full SHA
    ac1eff1 View commit details
Showing with 387 additions and 58,968 deletions.
  1. +5 −2 .Rbuildignore
  2. BIN ._huskydown.Rproj
  3. +4 −0 .gitattributes
  4. +27 −0 .github/ISSUE_TEMPLATE/bug_report.md
  5. +20 −0 .github/ISSUE_TEMPLATE/feature_request.md
  6. +2 −18 .travis.yml
  7. +18 −12 DESCRIPTION
  8. +13 −18 Dockerfile
  9. +1 −1 LICENSE
  10. +21 −0 LICENSE.md
  11. +12 −0 NEWS.md
  12. +5 −15 R/huskydown.R
  13. +5 −5 R/thesis.R
  14. +44 −36 README.md
  15. +51 −0 appveyor.yml
  16. +0 −179 index/01-chap1.Rmd
  17. +0 −123 index/02-chap2.Rmd
  18. +0 −137 index/03-chap3.Rmd
  19. +0 −8 index/04-conclusion.Rmd
  20. +0 −24 index/05-appendix.Rmd
  21. +0 −29 index/98-colophon.Rmd
  22. +0 −40 index/99-references.Rmd
  23. BIN index/_book/thesis.pdf
  24. +0 −1,083 index/_book/thesis.tex
  25. +0 −4 index/_bookdown.yml
  26. +0 −14 index/_bookdown_files/thesis_cache/latex/__packages
  27. BIN index/_bookdown_files/thesis_cache/latex/pressure_1614292f70dae4dd85c110df6a7bb276.RData
  28. 0 index/_bookdown_files/thesis_cache/latex/pressure_1614292f70dae4dd85c110df6a7bb276.rdb
  29. BIN index/_bookdown_files/thesis_cache/latex/pressure_1614292f70dae4dd85c110df6a7bb276.rdx
  30. BIN index/_bookdown_files/thesis_files/figure-latex/delaysboxplot-1.pdf
  31. BIN index/_bookdown_files/thesis_files/figure-latex/march3plot-1.pdf
  32. BIN index/_bookdown_files/thesis_files/figure-latex/pressure-1.pdf
  33. +0 −172 index/bib/thesis.bib
  34. +0 −77 index/chemarr.sty
  35. +0 −614 index/csl/apa.csl
  36. +0 −52,809 index/data/flights.csv
  37. BIN index/figure/subdivision.pdf
  38. BIN index/figure/uw-100px.png
  39. BIN index/figure/uw.png
  40. +0 −76 index/index.Rmd
  41. +0 −184 index/template.tex
  42. +0 −2,146 index/thesis.bcf
  43. +0 −82 index/thesis.run.xml
  44. +0 −923 index/uwthesis.cls
  45. BIN inst/fonts.zip
  46. +12 −5 inst/rmarkdown/templates/thesis/skeleton/01-chap1.Rmd
  47. +19 −1 inst/rmarkdown/templates/thesis/skeleton/03-chap3.Rmd
  48. +1 −0 inst/rmarkdown/templates/thesis/skeleton/_bookdown.yml
  49. +5 −2 inst/rmarkdown/templates/thesis/skeleton/skeleton.Rmd
  50. +20 −26 inst/rmarkdown/templates/thesis/skeleton/template.tex
  51. +10 −76 inst/rmarkdown/templates/thesis/skeleton/uwthesis.cls
  52. +0 −25 man/huskydown.Rd
  53. +8 −2 man/thesis_pdf.Rd
  54. +4 −0 tests/testthat.R
  55. +80 −0 tests/testthat/tests.R
7 changes: 5 additions & 2 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -2,12 +2,15 @@
^\.Rproj\.user$
^\.travis\.yml$
^Dockerfile$
^appveyor\.yml$
^NEWS\.md$
^uw_thesis_rmd\.png$
^README\.md$
^LICENSE$
^LICENSE\.md$
^CONDUCT\.md$
^CONTRIBUTING\.md$
^\.Rhistory$
^\.gitattributes$
^\.gitignore$
^index$
^LICENSE\.md$
^fonts\.zip$
Binary file added ._huskydown.Rproj
Binary file not shown.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto
data/* binary
src/* text=lf
R/* text=lf
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Your system (please complete the following information):**
- Paste in your output of `sessionInfo()`
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
20 changes: 2 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -6,12 +6,6 @@ matrix:
sudo: required
language: generic
services: docker
- os: osx
language: r
cache: packages
pandoc_version: 1.17.2



env:
global:
@@ -20,24 +14,14 @@ env:
warnings_are_errors: false

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap caskroom/fonts ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install font-eb-garamond font-source-code-pro font-lato ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo tlmgr update --self ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo tlmgr install biblatex titling titlesec quotchap lettrine appendix units tocloft draftwatermark everypage wasysym logreq xstring collection-fontsrecommended texliveonfly ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R -e 'install.packages("devtools")' ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -t $REPO . ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R -e "devtools::install_github('benmarwick/huskydown')" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R -e "unlink('index', recursive = TRUE)" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R -e "rmarkdown::draft('index.Rmd', template = 'thesis', package = 'huskydown', create_dir = TRUE, edit = FALSE)" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R -e "setwd('index'); bookdown::render_book('index.Rmd', huskydown::thesis_pdf(latex_engine = 'xelatex'))" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R -e "file.exists('index/_book/thesis.pdf')" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R -e "file.info('index/_book/thesis.pdf')" ; fi



# push our custom docker container to docker hub, env vars stored on travis-ci.org
# don't forget to set these at https://travis-ci.org/.../...settings
after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker login -u $DOCKER_USER -p $DOCKER_PASS ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export REPO=$DOCKER_USER/huskydown ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi` ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -f Dockerfile -t $REPO:$COMMIT . ; fi
30 changes: 18 additions & 12 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
Package: huskydown
Title: A R Markdown thesis template for the University of Washingtone
Version: 0.0.4
Title: An R Markdown thesis template for the University of Washington
Version: 0.0.5
Authors@R: c(
person("Chester", "Ismay", email = "chester.ismay@gmail.com", role = "cre"),
person("Chester", "Ismay", email = "chester.ismay@gmail.com", role = "aut"),
person("Nick", "Solomon", email = "nick@nicksolomon.me", role = "aut"),
person("Ben", "Marwick", email = "benmarwick@gmail.com", role = "aut"))
person("Ben", "Marwick", email = "benmarwick@gmail.com", role = c("cre", "aut")))
Description: Using the bookdown package and LaTeX and Word thesis templates from
UW, this package aims to encourage reproducible research using
simple Markdown syntax while embedding all of the R code to produce plots
and analyses as well. Based on Chester Ismay's thesisdown.
Maintainer: Ben Marwick <bmarwick@uw.edu>
Maintainer: Ben Marwick <benmarwick@gmail.com>
Depends:
R (>= 3.2.0),
devtools,
dplyr,
ggplot2,
R (>= 3.4.4)
Imports:
bookdown,
rmarkdown,
knitr,
git2r
git2r,
tinytex,
devtools,
dplyr,
ggplot2
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.0.1
License: MIT + file LICENSE
RoxygenNote: 7.1.1
SystemRequirements: pandoc (>= 1.18) - http://pandoc.org
Suggests:
testthat
31 changes: 13 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
# get the base image, the rocker/verse has R, RStudio and pandoc
FROM rocker/verse:3.4.4
# get the base image
FROM rocker/verse:3.6.0

# required
MAINTAINER Ben Marwick <bmarwick@uw.edu>

# get contents of GitHub repo
COPY . /huskydown

# go into the repo directory
RUN . /etc/environment \

# Install linux depedendencies here
# rocker/verse has xelatex
&& sudo apt-get update \
# install fonts
&& sudo apt-get install fonts-ebgaramond -y \
&& sudo git clone --depth 1 --branch release https://github.com/adobe-fonts/source-code-pro.git /usr/share/fonts/source-code-pro \
&& sudo fc-cache -f -v \
&& sudo apt-get install fonts-lato -y \
&& sudo apt-get update \

# build this compendium package
&& R -e "devtools::install('/huskydown', dep=TRUE)" \
&& sudo unzip huskydown/inst/fonts.zip && cp fonts -r /usr/local/share/fonts \
&& sudo fc-cache -f -v \

# make a PhD thesis from the template, remove pre-built PDF,
# then render new thesis into a PDF, then check it could work:
&& R -e "rmarkdown::draft('index.Rmd', template = 'thesis', package = 'huskydown', create_dir = TRUE, edit = FALSE)" \
&& R -e "if (file.exists('index/_book/thesis.pdf')) file.remove('index/_book/thesis.pdf')" \
&& R -e "setwd('index'); bookdown::render_book('index.Rmd', huskydown::thesis_pdf(latex_engine = 'xelatex'))" \
&& R -e "file.exists('index/_book/thesis.pdf')"
&& R -e "devtools::install('/huskydown', dep=TRUE)" \

&& R -e "if (dir.exists('index')) unlink('index', recursive = TRUE)" \
&& R -e "rmarkdown::draft('index.Rmd', template = 'thesis', package = 'huskydown', create_dir = TRUE, edit = FALSE)" \
&& R -e "if (file.exists('index/_book/thesis.pdf')) file.remove('index/_book/thesis.pdf')" \
&& R -e "setwd('index'); bookdown::render_book('index.Rmd', huskydown::thesis_pdf(latex_engine = 'xelatex'))" \
&& R -e "file.exists('index/_book/thesis.pdf')"
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2017
YEAR: 2018
COPYRIGHT HOLDER: Ben Marwick
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2018 Ben Marwick

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
12 changes: 12 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# huskydown 0.0.5

- remove custom highlighting
- make pandoc args available

# huskydown 0.0.4

- new version of Pandoc
- Source-Code-Pro changed location on GitHub, so changed method of getting them
- tinytex burst onto the scene, simplying LaTeX installs.


# huskydown 0.0.4

- CI on OSX and Linux, collect artefacts and issue PDF
20 changes: 5 additions & 15 deletions R/huskydown.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
#' huskydown: A package for creating undergraduate, Masters, and PhD theses
#'using R Markdown
#'
#'
#' @section thesis_gitbook:
#' Creates an R Markdown thesis template as a webpage
#' @section thesis_pdf:
#' Creates an R Markdown thesis template as a PDF
#' @section thesis_word:
#' Creates an R Markdown thesis template as a Microsoft Word document
#' @section thesis_epub:
#' Creates an R Markdown thesis template as an ebook
#' @docType package
#' @name huskydown
NULL
#' huskydown: A package for creating undergraduate, Masters, and PhD theses
#'using R Markdown
#' @docType package
#' @name huskydown
NULL
10 changes: 5 additions & 5 deletions R/thesis.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Creates an R Markdown PDF Thesis document
#'
#' This is a function called in output in the YAML of the driver Rmd file
#' to specify using the Reed College Senior Thesis LaTeX template and cls files.
#' to specify using the University of Washington Thesis LaTeX template and cls files.
#'
#' @export
#' @param toc A Boolean (TRUE or FALSE) specifying whether table of contents should be created
@@ -15,14 +15,14 @@
#' \dontrun{
#' output: huskydown::thesis_pdf
#' }
thesis_pdf <- function(toc = TRUE, toc_depth = 3, highlight = "default", ...){
thesis_pdf <- function(toc = TRUE, toc_depth = 3, highlight = "default", pandoc_args = NULL, ...){

base <- pdf_book(template = "template.tex",
base <- bookdown::pdf_book(template = "template.tex",
toc = toc,
toc_depth = toc_depth,
highlight = highlight,
keep_tex = TRUE,
pandoc_args = "--chapters",
pandoc_args = c(pandoc_args, "--top-level-division=chapter"),
...)

# Mostly copied from knitr::render_sweave
@@ -84,7 +84,7 @@ thesis_gitbook <- function(...){
#' }
thesis_word <- function(...){

base <- word_document2(...)
base <- bookdown::word_document2(...)

# Mostly copied from knitr::render_sweave
base$knitr$opts_chunk$comment <- NA
Loading