more changes to comply with CRAN
diff --git a/.Rbuildignore b/.Rbuildignore
index 78bbe5a..d1d0e1e 100644
--- a/.Rbuildignore
+++ b/.Rbuildignore
@@ -7,3 +7,4 @@
^\.travis\.yml$
^doc$
^Meta$
+^.github$
diff --git a/DESCRIPTION b/DESCRIPTION
index b6a0cbf..a991555 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -22,10 +22,10 @@
URL: https://github.com/brentthorne/posterdown
BugReports: https://github.com/brentthorne/posterdown/issues
Imports:
- knitr,
pagedown,
rmarkdown,
yaml
+Suggests: knitr
Encoding: UTF-8
LazyData: true
VignetteBuilder: knitr
diff --git a/R/posterdown_html.R b/R/posterdown_html.R
index 7b999b9..c9d035d 100644
--- a/R/posterdown_html.R
+++ b/R/posterdown_html.R
@@ -6,6 +6,12 @@
#' @return R Markdown output format to pass to
#' [rmarkdown::render()]
#'
+#'@examples
+#'\donttest{
+#'file <- file.path(tempdir(),"foo.rmd")
+#'rmarkdown::draft(file, template="posterdown_html", package="posterdown")
+#'}
+#'
#' @export
posterdown_html <- function(...,
template = find_resource("posterdown_html", "template.html"),
diff --git a/man/posterdown_html.Rd b/man/posterdown_html.Rd
index 3201e71..e4decbd 100644
--- a/man/posterdown_html.Rd
+++ b/man/posterdown_html.Rd
@@ -35,3 +35,10 @@
The output format \code{poster_betterport()} mimics the style of the
BetterPoster movement from twitter.
}
+\examples{
+\donttest{
+file <- file.path(tempdir(),"foo.rmd")
+rmarkdown::draft(file, template="posterdown_html", package="posterdown")
+}
+
+}