another attempt at fixing travis build error
diff --git a/.travis.yml b/.travis.yml
index 03c5fa2..65dde5f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,3 +1,19 @@
language: r
-sudo: false
+sudo: true
cache: packages
+pandoc_version: 2.3.1
+dist: trusty
+
+before_install:
+ - sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
+ - sudo apt-get --yes --force-yes update -qq
+ - sudo apt-get install -y libudunits2-dev libproj-dev libgeos++-dev libgdal-dev libv8-dev
+
+compiler:
+ - clang
+
+before_cache: Rscript -e 'remotes::install_cran("pkgdown")'
+deploy:
+ provider: script
+ script: Rscript -e 'pkgdown::deploy_site_github()'
+ skip_cleanup: true
diff --git a/DESCRIPTION b/DESCRIPTION
index 788a456..a6f6138 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -19,5 +19,5 @@
URL: https://github.com/brentthorne/posterdown
BugReports: https://github.com/brentthorne/posterdown/issues
Imports: bookdown, ggplot2, pagedown, kableExtra, Cairo, rmarkdown, knitr, yaml, ggspatial
-SystemRequirements: GNU make
+SystemRequirements: GNU make, Pandoc (>= 2.2.3)
RoxygenNote: 6.1.1
diff --git a/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd
index 344b957..4d45027 100644
--- a/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd
+++ b/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd
@@ -80,6 +80,7 @@
HTML documents such as this allow for "live" posters (aka GIFs or embeded videos etc), see Figure \@ref(fig:mymapfig) bellow for an example of a study site map made using the {ggspatial} or Figure \@ref(fig:gganimatefig) for an example using the [{gganimate}](github.com/thomasp85/gganimate) package by [@gganimate2017]. I can even change the order of the figures in the poster and [{posterdown}](github.com/brentthorne/posterdown) will take care of the formatting of Figure numbers for you, see Figure \@ref(fig:mymapfig).
```{r, mymapfig, out.width="100%", cache=FALSE, fig.cap='Map of Long Lake eample from the [ggspatial](https://github.com/paleolimbot/ggspatial) package [@ggspatial].', comment=FALSE}
+
library(ggspatial)
load_longlake_data()