├── basic ├── NAMESPACE ├── .Rbuildignore ├── R │ ├── fakepackage.r │ └── goodpackage-package.R ├── man │ ├── three.Rd │ └── goodpackage-package.Rd ├── README.md ├── DESCRIPTION └── .travis.yml ├── ctan ├── NAMESPACE ├── .Rbuildignore ├── vignettes │ └── fakepackage.Rnw ├── R │ ├── fakepackage.r │ └── goodpackage-package.R ├── man │ ├── three.Rd │ └── goodpackage-package.Rd ├── README.md ├── DESCRIPTION └── .travis.yml ├── xml ├── .Rbuildignore ├── NAMESPACE ├── R │ ├── fakepackage.r │ └── goodpackage-package.R ├── man │ ├── get_node.Rd │ └── goodpackage-package.Rd ├── DESCRIPTION ├── .travis.yml └── README.md ├── github ├── .Rbuildignore ├── NAMESPACE ├── R │ ├── fakepackage.r │ └── goodpackage-package.R ├── man │ ├── get_node.Rd │ └── goodpackage-package.Rd ├── DESCRIPTION ├── .travis.yml └── README.md ├── knitr ├── DESCRIPTION ├── example.Snw ├── .travis.yml └── README.md ├── rjava ├── .Rbuildignore ├── NAMESPACE ├── goodpackage │ ├── .gitignore │ └── .Rbuildignore ├── R │ ├── fakepackage.r │ └── goodpackage-package.R ├── man │ ├── check_package.Rd │ └── goodpackage-package.Rd ├── .travis.yml ├── README.md └── DESCRIPTION ├── rodbc ├── .Rbuildignore ├── NAMESPACE ├── goodpackage │ ├── .gitignore │ └── .Rbuildignore ├── R │ ├── fakepackage.r │ └── goodpackage-package.R ├── man │ ├── check_package.Rd │ └── goodpackage-package.Rd ├── DESCRIPTION ├── .travis.yml └── README.md ├── vignette ├── .Rbuildignore ├── goodpackage │ ├── .gitignore │ ├── NAMESPACE │ ├── .Rbuildignore │ ├── R │ │ ├── fakepackage.r │ │ └── goodpackage-package.R │ ├── vignettes │ │ └── example.Snw │ ├── man │ │ ├── get_node.Rd │ │ └── goodpackage-package.Rd │ └── DESCRIPTION ├── .travis.yml └── README.md ├── x-server ├── .Rbuildignore ├── NAMESPACE ├── R │ ├── goodpackage-package.R │ └── fakepackage.r ├── man │ ├── get_node.Rd │ └── goodpackage-package.Rd ├── DESCRIPTION ├── .travis.yml └── README.md ├── bioconductor ├── .Rbuildignore ├── NAMESPACE ├── R │ ├── fakepackage.r │ └── goodpackage-package.R ├── man │ ├── get_node.Rd │ └── goodpackage-package.Rd ├── DESCRIPTION ├── .travis.yml └── README.md ├── github-branch ├── NAMESPACE ├── R │ ├── fakepackagedev.r │ └── goodpackagedev-package.R ├── man │ ├── six.Rd │ └── goodpackagedev-package.Rd ├── DESCRIPTION ├── .travis.yml └── README.md ├── basic-directory ├── .Rbuildignore ├── goodpackage │ ├── .gitignore │ ├── NAMESPACE │ ├── .Rbuildignore │ ├── R │ │ ├── fakepackage.r │ │ └── goodpackage-package.R │ ├── man │ │ ├── three.Rd │ │ └── goodpackage-package.Rd │ └── DESCRIPTION ├── .travis.yml └── README.md ├── multiple-packages ├── .Rbuildignore ├── goodpackage1 │ ├── .gitignore │ ├── NAMESPACE │ ├── .Rbuildignore │ ├── R │ │ ├── fakepackage.r │ │ └── goodpackage-package.R │ ├── man │ │ ├── three.Rd │ │ └── goodpackage-package.Rd │ └── DESCRIPTION ├── goodpackage2 │ ├── .gitignore │ ├── NAMESPACE │ ├── .Rbuildignore │ ├── R │ │ ├── fakepackage.r │ │ └── goodpackage-package.R │ ├── man │ │ ├── three.Rd │ │ └── goodpackage-package.Rd │ └── DESCRIPTION ├── README.md └── .travis.yml ├── .gitignore ├── .travis.yml ├── extract-branch ├── check-readme └── README.md /basic/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(three) 2 | -------------------------------------------------------------------------------- /ctan/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(three) 2 | -------------------------------------------------------------------------------- /xml/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /basic/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /ctan/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /github/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /github/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(get_node) 2 | -------------------------------------------------------------------------------- /knitr/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Depends: knitr 2 | -------------------------------------------------------------------------------- /rjava/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /rodbc/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /vignette/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /x-server/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /xml/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(get_node) 2 | -------------------------------------------------------------------------------- /bioconductor/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /bioconductor/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(get_node) 2 | -------------------------------------------------------------------------------- /github-branch/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(six) 2 | -------------------------------------------------------------------------------- /rjava/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(check_package) 2 | -------------------------------------------------------------------------------- /rjava/goodpackage/.gitignore: -------------------------------------------------------------------------------- 1 | *.Rproj 2 | -------------------------------------------------------------------------------- /rodbc/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(check_package) 2 | -------------------------------------------------------------------------------- /rodbc/goodpackage/.gitignore: -------------------------------------------------------------------------------- 1 | *.Rproj 2 | -------------------------------------------------------------------------------- /vignette/goodpackage/.gitignore: -------------------------------------------------------------------------------- 1 | *.Rproj 2 | -------------------------------------------------------------------------------- /x-server/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(get_node) 2 | -------------------------------------------------------------------------------- /basic-directory/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /multiple-packages/.Rbuildignore: -------------------------------------------------------------------------------- 1 | .travis.yml 2 | -------------------------------------------------------------------------------- /basic-directory/goodpackage/.gitignore: -------------------------------------------------------------------------------- 1 | *.Rproj 2 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage1/.gitignore: -------------------------------------------------------------------------------- 1 | *.Rproj 2 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage2/.gitignore: -------------------------------------------------------------------------------- 1 | *.Rproj 2 | -------------------------------------------------------------------------------- /vignette/goodpackage/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(get_node) 2 | -------------------------------------------------------------------------------- /basic-directory/goodpackage/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(three) 2 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage1/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(three) 2 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage2/NAMESPACE: -------------------------------------------------------------------------------- 1 | export(three) 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | README.html 2 | dirs-in-readme 3 | dirs-in-repo 4 | -------------------------------------------------------------------------------- /rjava/goodpackage/.Rbuildignore: -------------------------------------------------------------------------------- 1 | ^.*\.Rproj$ 2 | ^\.Rproj\.user$ 3 | -------------------------------------------------------------------------------- /rodbc/goodpackage/.Rbuildignore: -------------------------------------------------------------------------------- 1 | ^.*\.Rproj$ 2 | ^\.Rproj\.user$ 3 | -------------------------------------------------------------------------------- /vignette/goodpackage/.Rbuildignore: -------------------------------------------------------------------------------- 1 | ^.*\.Rproj$ 2 | ^\.Rproj\.user$ 3 | -------------------------------------------------------------------------------- /basic-directory/goodpackage/.Rbuildignore: -------------------------------------------------------------------------------- 1 | ^.*\.Rproj$ 2 | ^\.Rproj\.user$ 3 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage1/.Rbuildignore: -------------------------------------------------------------------------------- 1 | ^.*\.Rproj$ 2 | ^\.Rproj\.user$ 3 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage2/.Rbuildignore: -------------------------------------------------------------------------------- 1 | ^.*\.Rproj$ 2 | ^\.Rproj\.user$ 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | ##Dummy .travis file 2 | language: c 3 | script: 4 | - ./check-readme 5 | -------------------------------------------------------------------------------- /ctan/vignettes/fakepackage.Rnw: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{hologo} 3 | \begin{document} 4 | . 5 | \end{document} 6 | -------------------------------------------------------------------------------- /knitr/example.Snw: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \begin{document} 4 | 5 | \section{An example knitr document} 6 | 7 | 8 | \end{document} -------------------------------------------------------------------------------- /ctan/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' three() + three() 5 | three = function() { 6 | 3 7 | } 8 | 9 | -------------------------------------------------------------------------------- /basic/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' three() + three() 5 | three = function() { 6 | 3 7 | } 8 | 9 | -------------------------------------------------------------------------------- /basic-directory/goodpackage/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' three() + three() 5 | three = function() { 6 | 3 7 | } 8 | 9 | -------------------------------------------------------------------------------- /bioconductor/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' get_node() 5 | get_node = function() { 6 | is.function(Mfuzz::mfuzz) 7 | } 8 | 9 | -------------------------------------------------------------------------------- /github/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' get_node() 5 | get_node = function() { 6 | qdapDictionaries::view_data() 7 | } 8 | 9 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage1/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' three() + three() 5 | three = function() { 6 | 3 7 | } 8 | 9 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage2/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' three() + three() 5 | three = function() { 6 | 3 7 | } 8 | 9 | -------------------------------------------------------------------------------- /vignette/goodpackage/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' get_node() 5 | get_node = function() { 6 | return("a node") 7 | } 8 | 9 | -------------------------------------------------------------------------------- /rjava/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' check_package() 5 | check_package = function() { 6 | is.function(rJava::clone) 7 | } 8 | 9 | -------------------------------------------------------------------------------- /rodbc/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' check_package() 5 | check_package = function() { 6 | is.function(RODBC::getSqlTypeInfo) 7 | } 8 | 9 | -------------------------------------------------------------------------------- /github-branch/R/fakepackagedev.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' six() + six() 5 | six = function() { 6 | goodpackage::three() + goodpackage::three() 7 | } 8 | 9 | -------------------------------------------------------------------------------- /vignette/goodpackage/vignettes/example.Snw: -------------------------------------------------------------------------------- 1 | %\VignetteIndexEntry{example} 2 | \documentclass[]{scrreprt} 3 | 4 | \begin{document} 5 | 6 | \section{My first vignette} 7 | 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /xml/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' get_node() 5 | get_node = function() { 6 | XML::newXMLNode("bob", namespace = c(r = "http://www.r-project.org")) 7 | } 8 | 9 | -------------------------------------------------------------------------------- /ctan/man/three.Rd: -------------------------------------------------------------------------------- 1 | \name{three} 2 | \alias{three} 3 | \title{An example function} 4 | \usage{ 5 | three() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | three() + three() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /github-branch/man/six.Rd: -------------------------------------------------------------------------------- 1 | \name{six} 2 | \alias{six} 3 | \title{An example function} 4 | \usage{ 5 | six() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | six() + six() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /xml/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /basic/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /basic/man/three.Rd: -------------------------------------------------------------------------------- 1 | \name{three} 2 | \alias{three} 3 | \title{An example function} 4 | \usage{ 5 | three() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | three() + three() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /ctan/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /extract-branch: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | DIR="$1" 6 | 7 | if [ -z "$DIR" ]; then 8 | echo "Syntax: $0 " >> /dev/stderr 9 | exit 1 10 | fi 11 | 12 | git subtree push --prefix=$DIR origin $DIR 13 | -------------------------------------------------------------------------------- /github/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /rjava/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /rodbc/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /x-server/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /xml/man/get_node.Rd: -------------------------------------------------------------------------------- 1 | \name{get_node} 2 | \alias{get_node} 3 | \title{An example function} 4 | \usage{ 5 | get_node() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | get_node() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /bioconductor/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /github/man/get_node.Rd: -------------------------------------------------------------------------------- 1 | \name{get_node} 2 | \alias{get_node} 3 | \title{An example function} 4 | \usage{ 5 | get_node() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | get_node() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /x-server/man/get_node.Rd: -------------------------------------------------------------------------------- 1 | \name{get_node} 2 | \alias{get_node} 3 | \title{An example function} 4 | \usage{ 5 | get_node() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | get_node() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /bioconductor/man/get_node.Rd: -------------------------------------------------------------------------------- 1 | \name{get_node} 2 | \alias{get_node} 3 | \title{An example function} 4 | \usage{ 5 | get_node() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | get_node() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /vignette/goodpackage/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /basic-directory/goodpackage/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /basic-directory/goodpackage/man/three.Rd: -------------------------------------------------------------------------------- 1 | \name{three} 2 | \alias{three} 3 | \title{An example function} 4 | \usage{ 5 | three() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | three() + three() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /vignette/goodpackage/man/get_node.Rd: -------------------------------------------------------------------------------- 1 | \name{get_node} 2 | \alias{get_node} 3 | \title{An example function} 4 | \usage{ 5 | get_node() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | get_node() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /github-branch/R/goodpackagedev-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage dev version 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackagedev-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /multiple-packages/goodpackage1/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /multiple-packages/goodpackage1/man/three.Rd: -------------------------------------------------------------------------------- 1 | \name{three} 2 | \alias{three} 3 | \title{An example function} 4 | \usage{ 5 | three() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | three() + three() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage2/R/goodpackage-package.R: -------------------------------------------------------------------------------- 1 | #' The goodpackage 2 | #' 3 | #' A simple test package 4 | #' 5 | #' @name goodpackage-package 6 | #' @docType package 7 | #' @author \email{csgillespie@@gmail.com} 8 | #' @keywords package 9 | NULL -------------------------------------------------------------------------------- /multiple-packages/goodpackage2/man/three.Rd: -------------------------------------------------------------------------------- 1 | \name{three} 2 | \alias{three} 3 | \title{An example function} 4 | \usage{ 5 | three() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | three() + three() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /rjava/man/check_package.Rd: -------------------------------------------------------------------------------- 1 | \name{check_package} 2 | \alias{check_package} 3 | \title{An example function} 4 | \usage{ 5 | check_package() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | check_package() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /rodbc/man/check_package.Rd: -------------------------------------------------------------------------------- 1 | \name{check_package} 2 | \alias{check_package} 3 | \title{An example function} 4 | \usage{ 5 | check_package() 6 | } 7 | \description{ 8 | An example function 9 | } 10 | \examples{ 11 | check_package() 12 | } 13 | 14 | -------------------------------------------------------------------------------- /basic/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /ctan/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /github/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /rjava/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /rodbc/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /xml/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /x-server/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /bioconductor/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /vignette/goodpackage/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /basic-directory/goodpackage/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage1/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage2/man/goodpackage-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackage-package} 3 | \alias{goodpackage-package} 4 | \title{The goodpackage} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /github-branch/man/goodpackagedev-package.Rd: -------------------------------------------------------------------------------- 1 | \docType{package} 2 | \name{goodpackagedev-package} 3 | \alias{goodpackagedev-package} 4 | \title{The goodpackage dev version} 5 | \description{ 6 | A simple test package 7 | } 8 | \author{ 9 | \email{csgillespie@gmail.com} 10 | } 11 | \keyword{package} 12 | 13 | -------------------------------------------------------------------------------- /ctan/README.md: -------------------------------------------------------------------------------- 1 | Example: CTAN 2 | ========================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=ctan)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | Installation of packages from CTAN if they are not part of, or too old in, TeXlive 2009. In this case it's the `oberdiek` bundle. 6 | -------------------------------------------------------------------------------- /basic/README.md: -------------------------------------------------------------------------------- 1 | Example: Basic example 2 | ========================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=basic)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | The most basic travis set-up: your package is in the base directory. You should add `.travis.yml` to your `.Rbuildignore` file. 6 | -------------------------------------------------------------------------------- /rjava/.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | script: ./travis-tool.sh run_tests 3 | 4 | before_install: 5 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 6 | - chmod 755 ./travis-tool.sh 7 | - ./travis-tool.sh bootstrap 8 | install: 9 | - sudo R CMD javareconf 10 | - ./travis-tool.sh install_deps 11 | 12 | -------------------------------------------------------------------------------- /basic/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | License: Apache License (== 2.0) 7 | Description: This is just a fake package. Based on Craig Citro's test 8 | fakepackage for r-travis. 9 | Collate: 10 | 'fakepackage.r' 11 | 'goodpackage-package.R' 12 | -------------------------------------------------------------------------------- /ctan/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | License: Apache License (== 2.0) 7 | Description: This is just a fake package. Based on Craig Citro's test 8 | fakepackage for r-travis. 9 | Collate: 10 | 'fakepackage.r' 11 | 'goodpackage-package.R' 12 | -------------------------------------------------------------------------------- /rjava/README.md: -------------------------------------------------------------------------------- 1 | Example: rJava dependency 2 | =========================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=rjava)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | This branch illustrates loading the `rJava` package. The key lines are: 6 | 7 | ```yml 8 | language: java 9 | install: 10 | - sudo R CMD javareconf 11 | ``` 12 | -------------------------------------------------------------------------------- /basic-directory/goodpackage/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | License: Apache License (== 2.0) 7 | Description: This is just a fake package. Based on Craig Citro's test 8 | fakepackage for r-travis. 9 | Collate: 10 | 'fakepackage.r' 11 | 'goodpackage-package.R' 12 | -------------------------------------------------------------------------------- /basic/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | before_install: 8 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 9 | - chmod 755 ./travis-tool.sh 10 | - ./travis-tool.sh bootstrap 11 | install: 12 | - ./travis-tool.sh install_deps 13 | 14 | -------------------------------------------------------------------------------- /xml/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | Imports: 7 | XML 8 | License: Apache License (== 2.0) 9 | Description: This is just a fake package. Based on Craig Citro's test 10 | fakepackage for r-travis. 11 | Collate: 12 | 'fakepackage.r' 13 | 'goodpackage-package.R' 14 | -------------------------------------------------------------------------------- /rjava/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | License: Apache License (== 2.0) 7 | Description: This is just a fake package. Based on Craig Citro's test 8 | fakepackage for r-travis. 9 | Depends: 10 | rJava 11 | Collate: 12 | 'fakepackage.r' 13 | 'goodpackage-package.R' 14 | -------------------------------------------------------------------------------- /rodbc/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | License: Apache License (== 2.0) 7 | Description: This is just a fake package. Based on Craig Citro's test 8 | fakepackage for r-travis. 9 | Depends: 10 | RODBC 11 | Collate: 12 | 'fakepackage.r' 13 | 'goodpackage-package.R' 14 | -------------------------------------------------------------------------------- /github/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | Imports: qdapDictionaries 7 | License: Apache License (== 2.0) 8 | Description: This is just a fake package. Based on Craig Citro's test 9 | fakepackage for r-travis. 10 | Collate: 11 | 'fakepackage.r' 12 | 'goodpackage-package.R' 13 | -------------------------------------------------------------------------------- /x-server/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | Depends: 7 | tcltk 8 | License: Apache License (== 2.0) 9 | Description: This is just a fake package. Based on Craig Citro's test 10 | fakepackage for r-travis. 11 | Collate: 12 | 'fakepackage.r' 13 | 'goodpackage-package.R' 14 | -------------------------------------------------------------------------------- /x-server/R/fakepackage.r: -------------------------------------------------------------------------------- 1 | #' An example function 2 | #' @export 3 | #' @examples 4 | #' get_node() 5 | get_node = function() { 6 | ##Example from tkchooseDirectory 7 | tt <- tktoplevel() 8 | tkpack(l1 <- tklabel(tt, text = "Heave"), l2 <- tklabel(tt, text = "Ho")) 9 | tkpack.configure(l1, side = "left") 10 | 11 | ## Try stretching the window and then 12 | 13 | tkdestroy(tt) 14 | 15 | } 16 | 17 | -------------------------------------------------------------------------------- /github-branch/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackagedev 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | License: Apache License (== 2.0) 7 | Description: This is just a fake package. Based on Craig Citro's test 8 | fakepackage for r-travis. 9 | Imports: 10 | goodpackage 11 | Collate: 12 | 'fakepackagedev.r' 13 | 'goodpackagedev-package.R' 14 | -------------------------------------------------------------------------------- /basic-directory/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | before_install: 8 | - cd goodpackage 9 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 10 | - chmod 755 ./travis-tool.sh 11 | - ./travis-tool.sh bootstrap 12 | install: 13 | - ./travis-tool.sh install_deps 14 | 15 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage1/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | Depends: 7 | R (>= 3.0.1) 8 | License: Apache License (== 2.0) 9 | Description: This is just a fake package. Based on Craig Citro's test 10 | fakepackage for r-travis. 11 | Collate: 12 | 'fakepackage.r' 13 | 'goodpackage-package.R' 14 | -------------------------------------------------------------------------------- /multiple-packages/goodpackage2/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | Depends: 7 | R (>= 3.0.1) 8 | License: Apache License (== 2.0) 9 | Description: This is just a fake package. Based on Craig Citro's test 10 | fakepackage for r-travis. 11 | Collate: 12 | 'fakepackage.r' 13 | 'goodpackage-package.R' 14 | -------------------------------------------------------------------------------- /bioconductor/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | License: Apache License (== 2.0) 7 | Description: This is just a fake package. Based on Craig Citro's test 8 | fakepackage for r-travis. Imports a small bioconductor package. 9 | Imports: 10 | Mfuzz 11 | Collate: 12 | 'fakepackage.r' 13 | 'goodpackage-package.R' 14 | -------------------------------------------------------------------------------- /vignette/goodpackage/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: goodpackage 2 | Title: Test package 3 | Version: 0.1 4 | Author: Colin Gillespie 5 | Maintainer: Colin Gillespie 6 | License: Apache License (== 2.0) 7 | Description: This is just a fake package. Based on Craig Citro's test 8 | fakepackage for r-travis. 9 | Collate: 10 | 'fakepackage.r' 11 | 'goodpackage-package.R' 12 | VignetteBuilder: knitr 13 | Suggests: 14 | knitr 15 | -------------------------------------------------------------------------------- /xml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | before_install: 8 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 9 | - chmod 755 ./travis-tool.sh 10 | - ./travis-tool.sh bootstrap 11 | install: 12 | - ./travis-tool.sh install_deps 13 | - ./travis-tool.sh aptget_install r-cran-xml 14 | 15 | -------------------------------------------------------------------------------- /github-branch/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | before_install: 8 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 9 | - chmod 755 ./travis-tool.sh 10 | - ./travis-tool.sh bootstrap 11 | install: 12 | - ./travis-tool.sh install_deps 13 | - ./travis-tool.sh install_github csgillespie/travis-examples@basic 14 | -------------------------------------------------------------------------------- /github/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | before_install: 8 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 9 | - chmod 755 ./travis-tool.sh 10 | - ./travis-tool.sh bootstrap 11 | install: 12 | - ./travis-tool.sh install_deps 13 | - ./travis-tool.sh github_package trinker/qdapDictionaries 14 | 15 | 16 | -------------------------------------------------------------------------------- /xml/README.md: -------------------------------------------------------------------------------- 1 | Example: XML dependencies 2 | ========================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=xml)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | This branch illustrates having an `XML` dependency. The key line is in the `install` section: 6 | 7 | ``` 8 | - ./travis-tool.sh aptget_install r-cran-xml 9 | ``` 10 | 11 | This line installs the `XML` package from the ubuntu repository with all the necessary dependencies. 12 | -------------------------------------------------------------------------------- /github-branch/README.md: -------------------------------------------------------------------------------- 1 | Example: github branch 2 | ========================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=github-branch)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | The script illustrates installing a package from a github branch. The key line is: 6 | ```yml 7 | - ./travis-tool.sh install_github csgillespie/travis-examples@travis-basic 8 | ``` 9 | which installs the package from travis-basic branch of the csgillespie/travis-examples repo. 10 | -------------------------------------------------------------------------------- /x-server/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | env: 8 | global: 9 | - DISPLAY=:99.0 10 | 11 | before_install: 12 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 13 | - chmod 755 ./travis-tool.sh 14 | - ./travis-tool.sh bootstrap 15 | install: 16 | - ./travis-tool.sh install_deps 17 | - sh -e /etc/init.d/xvfb start 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /rodbc/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | before_install: 8 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 9 | - chmod 755 ./travis-tool.sh 10 | - ./travis-tool.sh bootstrap 11 | install: 12 | - ./travis-tool.sh aptget_install r-cran-rodbc 13 | - ./travis-tool.sh install_deps 14 | ##OR 15 | # - ./travis-tool.sh aptget_install unixodbc-dev 16 | 17 | -------------------------------------------------------------------------------- /github/README.md: -------------------------------------------------------------------------------- 1 | Example: Installing packages from github 2 | ======================================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=github)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | This branch illustrates installing a package from github. The key line is in the `install` section: 6 | 7 | ```yml 8 | - ./travis-tool.sh github_package trinker/qdapDictionaries 9 | ``` 10 | 11 | This line installs the `qdapDictionaries` package from trinker's repository. 12 | -------------------------------------------------------------------------------- /knitr/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: 6 | - Rscript -e "require(knitr); fname = 'example.Snw'; knit(fname); purl(fname)" 7 | - pdflatex example 8 | 9 | before_install: 10 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 11 | - chmod 755 ./travis-tool.sh 12 | - ./travis-tool.sh bootstrap 13 | install: 14 | - ./travis-tool.sh install_deps 15 | env: 16 | global: 17 | - BOOTSTRAP_LATEX="1" 18 | 19 | -------------------------------------------------------------------------------- /bioconductor/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | before_install: 8 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 9 | - chmod 755 ./travis-tool.sh 10 | - ./travis-tool.sh bootstrap 11 | 12 | ##Need to manually add all dependencies 13 | ##In this package, we require Mfuzz 14 | install: 15 | - ./travis-tool.sh bioc_install Mfuzz 16 | - ./travis-tool.sh install_deps 17 | 18 | 19 | -------------------------------------------------------------------------------- /multiple-packages/README.md: -------------------------------------------------------------------------------- 1 | Example: Multiple packages 2 | ========================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=multiple-packages)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | This branch illustrates having multiple packages in a single repository. The key lines are: 6 | 7 | ``` 8 | before_install: 9 | - cd $REPO_TO_TEST 10 | ``` 11 | 12 | and 13 | ``` 14 | env: 15 | matrix: 16 | - REPO_TO_TEST=goodpackage1 17 | - REPO_TO_TEST=goodpackage2 18 | ``` 19 | 20 | 21 | -------------------------------------------------------------------------------- /vignette/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | before_install: 8 | - cd goodpackage 9 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 10 | - chmod 755 ./travis-tool.sh 11 | - ./travis-tool.sh bootstrap 12 | install: 13 | - ./travis-tool.sh install_deps 14 | 15 | env: 16 | global: 17 | - R_BUILD_ARGS=" " 18 | - R_CHECK_ARGS="--as-cran" 19 | - BOOTSTRAP_LATEX="1" 20 | 21 | -------------------------------------------------------------------------------- /multiple-packages/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | before_install: 8 | - cd $REPO_TO_TEST 9 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 10 | - chmod 755 ./travis-tool.sh 11 | - ./travis-tool.sh bootstrap 12 | install: 13 | - ./travis-tool.sh install_deps 14 | 15 | env: 16 | matrix: 17 | - REPO_TO_TEST=goodpackage1 18 | - REPO_TO_TEST=goodpackage2 19 | 20 | 21 | -------------------------------------------------------------------------------- /basic-directory/README.md: -------------------------------------------------------------------------------- 1 | Example: Basic example 2 | ========================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=basic-directory)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | This set-up is almost identical to the 6 | [basic](https://github.com/csgillespie/travis-examples/tree/basic) 7 | set-up, except the package lives in the directory `goodpackage`. In the 8 | `.travis.yml` script, we add the line to change directory 9 | 10 | ```yml 11 | before_install: 12 | - cd goodpackage #Your directory name 13 | ``` 14 | 15 | -------------------------------------------------------------------------------- /vignette/README.md: -------------------------------------------------------------------------------- 1 | Example: Package with vignettes 2 | =============================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=vignette)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | The package in this branch contains a vignette that is built using `knitr`. By default, r-travis doesn't build 6 | vignettes. To make travis build the vignettes, add the following lines to your `.travis.yml` file: 7 | 8 | ```yml 9 | env: 10 | global: 11 | - R_BUILD_ARGS=" " 12 | - R_CHECK_ARGS="--as-cran" 13 | - BOOTSTRAP_LATEX="1" 14 | ``` 15 | -------------------------------------------------------------------------------- /bioconductor/README.md: -------------------------------------------------------------------------------- 1 | Example: Bioconductor packages 2 | ============================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=bioconductor)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | This branch illustrates a package with Bioconductor dependencies. The key lines are in the `install` section, where we `source` the biocLite script and install the required packages (in this example, we install the `Mfuzz` package) 6 | 7 | ```yml 8 | install: 9 | - ./travis-tool.sh bioc_install Mfuzz 10 | - ./travis-tool.sh install_deps 11 | ``` 12 | 13 | -------------------------------------------------------------------------------- /check-readme: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | sed -n -r '/\/csgillespie\/travis-examples\/tree\// {s/^.*\/csgillespie\/travis-examples\/tree\/([^)]+).*$/\1/;p}' README.md | sort > dirs-in-readme 6 | find * -maxdepth 0 -type d | sort > dirs-in-repo 7 | if ! diff dirs-in-readme dirs-in-repo; then 8 | echo "$0: Please include a reference to each example in the README.md" >> /dev/stderr 9 | exit 1 10 | fi 11 | 12 | if find * -mindepth 1 -name README.md -exec grep "Build Status" \{\} \+ | egrep -v "^([^/]+)/.*branch=\1"; then 13 | echo "$0: Please ensure correctness of the build status icon in all sub-README.md" >> /dev/stderr 14 | exit 1 15 | fi 16 | -------------------------------------------------------------------------------- /ctan/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | # To build on OSX, switch the previous line to 3 | # language: objective-c 4 | 5 | script: ./travis-tool.sh run_tests 6 | 7 | env: 8 | global: 9 | - R_BUILD_ARGS="--no-manual" 10 | - R_CHECK_ARGS="--no-manual --as-cran" 11 | - BOOTSTRAP_LATEX=1 12 | 13 | before_install: 14 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh 15 | - chmod 755 ./travis-tool.sh 16 | - ./travis-tool.sh bootstrap 17 | - (cd /tmp && curl -OL http://mirrors.ctan.org/install/macros/latex/contrib/oberdiek.tds.zip && cd /usr/share/texmf/tex/latex && sudo unzip /tmp/oberdiek.tds.zip && sudo texhash) 18 | install: 19 | - ./travis-tool.sh install_deps 20 | -------------------------------------------------------------------------------- /knitr/README.md: -------------------------------------------------------------------------------- 1 | Example: knitr-example 2 | ========================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=knitr)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | 6 | This branch illustrates how to compile a knitr document under travis. Key points: 7 | 8 | * `DESCRIPTION` file. This should contain all R packages (including `knitr`) needed to compile your document. 9 | * `.travis.yml` file. In particular, note 10 | 11 | ```yml 12 | script: 13 | - Rscript -e "require(knitr); fname = 'example.Snw'; knit(fname); purl(fname)" 14 | - pdflatex example 15 | ``` 16 | and 17 | 18 | ```yml 19 | env: 20 | global: 21 | - BOOTSTRAP_LATEX="1" 22 | ``` 23 | 24 | -------------------------------------------------------------------------------- /rodbc/README.md: -------------------------------------------------------------------------------- 1 | Example: RODBC dependency 2 | =========================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=rodbc)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | This branch illustrates loading the `RODBC` package (used for database connections). The key line is in the `install` section: 6 | 7 | ``` 8 | - ./travis-tool.sh aptget_install r-cran-rodbc 9 | ``` 10 | 11 | This line installs the `RODBC` package from the ubuntu repository with all the necessary dependencies. 12 | 13 | Alternatively, we can install the necessary database libraries 14 | 15 | ``` 16 | - ./travis-tool.sh aptget_install unixodbc-dev 17 | ``` 18 | then use `install_deps` to install the `RODBC` package. 19 | -------------------------------------------------------------------------------- /x-server/README.md: -------------------------------------------------------------------------------- 1 | Example: Tests that require a working X-server 2 | ============================================== 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=x-server)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | 6 | If your package tests require a virtual framebuffer, then add the following lines to `.travis.yml` 7 | 8 | ```yml 9 | env: 10 | global: 11 | - DISPLAY=:99.0 12 | install: 13 | - sh -e /etc/init.d/xvfb start 14 | ``` 15 | 16 | Alternatively, install the `xvfb-run` package and prefix the call with `xvfb-run` as shown in [this StackOverflow question](http://stackoverflow.com/questions/1710853/how-to-run-r-on-a-server-without-x11-and-avoid-broken-dependencies/). 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | r-travis examples 2 | ================= 3 | [![Build Status](https://travis-ci.org/csgillespie/travis-examples.png?branch=master)](https://travis-ci.org/csgillespie/travis-examples) 4 | 5 | This repository contains example [r-travis](https://github.com/craigcitro/r-travis) set-ups. Each branch 6 | illustrates a different travis scenario. 7 | 8 | * [Basic set-up](https://github.com/csgillespie/travis-examples/tree/basic) 9 | * Package not in the [root directory](https://github.com/csgillespie/travis-examples/tree/basic-directory) 10 | * Package that contains a [vignette](https://github.com/csgillespie/travis-examples/tree/vignette) 11 | * [Multiple packages](https://github.com/csgillespie/travis-examples/tree/multiple-packages) in a single repository 12 | * [XML dependency](https://github.com/csgillespie/travis-examples/tree/xml) 13 | * [rJava dependency](https://github.com/csgillespie/travis-examples/tree/rjava) 14 | * [RODBC dependency](https://github.com/csgillespie/travis-examples/tree/rodbc) 15 | * [github dependency](https://github.com/csgillespie/travis-examples/tree/github) 16 | * [github branch dependency](https://github.com/csgillespie/travis-examples/tree/github-branch) 17 | * [Bioconductor example](https://github.com/csgillespie/travis-examples/tree/bioconductor) 18 | * Working [x-server](https://github.com/csgillespie/travis-examples/tree/x-server) 19 | * [Compiling](https://github.com/csgillespie/travis-examples/tree/knitr) (only) knitr documents, i.e. you are not building a package. 20 | * Installing from [CTAN](https://github.com/csgillespie/travis-examples/tree/ctan) 21 | 22 | 23 | #### Pull request for existing examples 24 | 25 | To edit an existing example: 26 | 27 | 1. Clone the relevant branch 28 | 1. Submit pull request as usual 29 | 30 | I will then use git subtree to merge the changes from the branch to master 31 | 32 | #### Adding a new example 33 | 34 | 1. Clone an existing example that matches your example 35 | 1. Ensure that your branch passes travis-ci 36 | 1. Clone the master and copy your branch to a directory 37 | 1. Submit pull request 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | --------------------------------------------------------------------------------