diff --git a/.Rbuildignore b/.Rbuildignore index 5f39f2f..64ed65a 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -7,3 +7,7 @@ ^tdor.*\.tgz$ ^doc$ ^Meta$ +^_pkgdown\.yml$ +^docs$ +^pkgdown$ +^\.travis\.yml$ diff --git a/.gitignore b/.gitignore index 41e37c5..1eb1cd3 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ tdor*.tar.gz tdor*.tgz doc Meta +docs/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..67c5e34 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r + +language: R +cache: packages +warnings_are_errors: true +sudo: false +cache: packages +os: + - linux +r: + - devel +before_deploy: Rscript -e 'remotes::install_cran("pkgdown"); covr::codecov();' +git: + depth: 9999999 +deploy: + provider: script + script: Rscript -e 'pkgdown::deploy_site_github()' + skip_cleanup: true diff --git a/DESCRIPTION b/DESCRIPTION index 4b6598a..3612099 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -15,7 +15,7 @@ License: CC0 Encoding: UTF-8 LazyData: true Depends: R (>= 2.10) -RoxygenNote: 6.1.1 +RoxygenNote: 7.0.0 Suggests: dplyr, gganimate, @@ -24,5 +24,7 @@ Suggests: knitr, lubridate, maps, - rmarkdown + rmarkdown, + stringr, + pkgdown VignetteBuilder: knitr diff --git a/README.Rmd b/README.Rmd index 5455a35..4562292 100644 --- a/README.Rmd +++ b/README.Rmd @@ -12,7 +12,9 @@ knitr::opts_chunk$set( out.width = "100%" ) ``` - + + [![Travis build status](https://travis-ci.org/CaRdiffR/tdor.svg?branch=master)](https://travis-ci.org/CaRdiffR/tdor) + # tdor **tdor** provides data on killings and suicides of transgender people, as diff --git a/_pkgdown.yml b/_pkgdown.yml new file mode 100644 index 0000000..6ef5f5a --- /dev/null +++ b/_pkgdown.yml @@ -0,0 +1 @@ +destination: docs