Rename package to revealjs.ids
Renames the fork so the IDS corporate design edition can be installed
alongside upstream rstudio/revealjs (same pattern as posterdown.ids).
Use revealjs.ids::revealjs_presentation in the R Markdown yaml header.
Changes: DESCRIPTION (Package name, Version -> 0.9.1.9009, Title notes
the IDS edition), R/utils.R package lookups, skeleton + RStudio
template identity (now 'Reveal.js Presentation (IDS CD theme)'),
README usage, GitLab CI render call, tests, examples. Old documents
referring to revealjs::revealjs_presentation need upstream revealjs
or a search/replace of the prefix.
Change-Id: Id3988b2c3fd348faca3c0951223d0b90c01741dc
diff --git a/tests/manual/test-incremental-attributes.Rmd b/tests/manual/test-incremental-attributes.Rmd
index d9ff640..b90d424 100644
--- a/tests/manual/test-incremental-attributes.Rmd
+++ b/tests/manual/test-incremental-attributes.Rmd
@@ -1,7 +1,7 @@
---
title: "Incremental using attributes"
output:
- revealjs::revealjs_presentation:
+ revealjs.ids::revealjs_presentation:
incremental: false
---
diff --git a/tests/manual/test-incremental-globally.Rmd b/tests/manual/test-incremental-globally.Rmd
index c4a3c80..6435590 100644
--- a/tests/manual/test-incremental-globally.Rmd
+++ b/tests/manual/test-incremental-globally.Rmd
@@ -1,7 +1,7 @@
---
title: "Incremental globally"
output:
- revealjs::revealjs_presentation:
+ revealjs.ids::revealjs_presentation:
incremental: true
---
diff --git a/tests/manual/test-incremental-locally.Rmd b/tests/manual/test-incremental-locally.Rmd
index 1d1ebe6..38ad0c2 100644
--- a/tests/manual/test-incremental-locally.Rmd
+++ b/tests/manual/test-incremental-locally.Rmd
@@ -1,7 +1,7 @@
---
title: "Incremental locally"
output:
- revealjs::revealjs_presentation:
+ revealjs.ids::revealjs_presentation:
incremental: false
---
diff --git a/tests/manual/test-incremental-pausing.Rmd b/tests/manual/test-incremental-pausing.Rmd
index 48174db..0da11f5 100644
--- a/tests/manual/test-incremental-pausing.Rmd
+++ b/tests/manual/test-incremental-pausing.Rmd
@@ -1,6 +1,6 @@
---
title: "Incremental by pausing"
-output: revealjs::revealjs_presentation
+output: revealjs.ids::revealjs_presentation
---
# Pausing using pandoc syntax
diff --git a/tests/manual/test-options-size.Rmd b/tests/manual/test-options-size.Rmd
index 89862d8..a4a675a 100644
--- a/tests/manual/test-options-size.Rmd
+++ b/tests/manual/test-options-size.Rmd
@@ -1,6 +1,6 @@
---
output:
- revealjs::revealjs_presentation:
+ revealjs.ids::revealjs_presentation:
reveal_options:
width: "100%"
height: "100%"
diff --git a/tests/manual/test-plugin-chalkboard.Rmd b/tests/manual/test-plugin-chalkboard.Rmd
index 1f6c00b..215ae75 100644
--- a/tests/manual/test-plugin-chalkboard.Rmd
+++ b/tests/manual/test-plugin-chalkboard.Rmd
@@ -1,7 +1,7 @@
---
title: "chalkboard plugin"
output:
- revealjs::revealjs_presentation:
+ revealjs.ids::revealjs_presentation:
self_contained: false
reveal_plugins: ["chalkboard"]
reveal_options:
diff --git a/tests/manual/test-widget-highcharter.Rmd b/tests/manual/test-widget-highcharter.Rmd
index 34cdc8e..c0a2673 100644
--- a/tests/manual/test-widget-highcharter.Rmd
+++ b/tests/manual/test-widget-highcharter.Rmd
@@ -1,7 +1,7 @@
---
title: "Rmarkdown Presentation including Plotly"
output:
- revealjs::revealjs_presentation
+ revealjs.ids::revealjs_presentation
---
# Setup
diff --git a/tests/manual/test-widget-leaflet.Rmd b/tests/manual/test-widget-leaflet.Rmd
index 2b57ede..6abe75e 100644
--- a/tests/manual/test-widget-leaflet.Rmd
+++ b/tests/manual/test-widget-leaflet.Rmd
@@ -1,7 +1,7 @@
---
title: "Rmarkdown Presentation including Leaflet"
output:
- revealjs::revealjs_presentation
+ revealjs.ids::revealjs_presentation
---
```{r, include = FALSE}
diff --git a/tests/manual/test-widget-plotly.Rmd b/tests/manual/test-widget-plotly.Rmd
index 1090198..2291d15 100644
--- a/tests/manual/test-widget-plotly.Rmd
+++ b/tests/manual/test-widget-plotly.Rmd
@@ -1,7 +1,7 @@
---
title: "Rmarkdown Presentation including Plotly"
output:
- revealjs::revealjs_presentation
+ revealjs.ids::revealjs_presentation
---
# Setup
diff --git a/tests/testthat.R b/tests/testthat.R
index e6bfcd1..5daa18b 100644
--- a/tests/testthat.R
+++ b/tests/testthat.R
@@ -1,4 +1,4 @@
library(testthat)
-library(revealjs)
+library(revealjs.ids)
-test_check("revealjs")
+test_check("revealjs.ids")
diff --git a/tests/testthat/helpers.R b/tests/testthat/helpers.R
index ce5d6c4..894f680 100644
--- a/tests/testthat/helpers.R
+++ b/tests/testthat/helpers.R
@@ -9,7 +9,7 @@
# TODO: Use `rmarkdown::draft()` when rmarkdown 2.12 is out.
pkg_file <- getFromNamespace("pkg_file", "rmarkdown")
template_path <- pkg_file("rmarkdown", "templates", "revealjs_presentation",
- package = "revealjs")
+ package = "revealjs.ids")
rmarkdown::draft(path, template_path, edit = FALSE)
}
diff --git a/tests/testthat/test-themes.R b/tests/testthat/test-themes.R
index d217d06..b19e1de 100644
--- a/tests/testthat/test-themes.R
+++ b/tests/testthat/test-themes.R
@@ -13,7 +13,7 @@
testdoc <- "testdoc.Rmd"
rmarkdown::draft(testdoc,
system.file("rmarkdown", "templates", "revealjs_presentation",
- package = "revealjs"),
+ package = "revealjs.ids"),
create_dir = FALSE,
edit = FALSE)
@@ -31,4 +31,4 @@
}
# test all themes
-sapply(revealjs:::revealjs_themes(), test_theme)
+sapply(revealjs.ids:::revealjs_themes(), test_theme)
diff --git a/tests/testthat/test-utils.R b/tests/testthat/test-utils.R
index 98ec1d0..56e95a4 100644
--- a/tests/testthat/test-utils.R
+++ b/tests/testthat/test-utils.R
@@ -35,7 +35,7 @@
})
test_that("revealjs lib path is found in package", {
- expect_match(revealjs_lib_path(), "revealjs/(inst/)?reveal\\.js-")
+ expect_match(revealjs_lib_path(), "revealjs(\\.ids)?/(inst/)?reveal\\.js-")
expect_true(dir.exists(revealjs_lib_path()))
})