aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Kellner <ken@kenkellner.com>2022-11-15 11:44:49 -0500
committerKen Kellner <ken@kenkellner.com>2022-11-15 11:44:49 -0500
commit3ec215ced2a88fb70fbb46a11671a39f29cd81db (patch)
treefe2d2eaa752ac3d507d87068f6cabb7db9f03e4c
parentcb5d654b6ccfd3c0c131fa6d369a2a8728888cb8 (diff)
Remove embedded shiny app
-rw-r--r--DESCRIPTION4
-rw-r--r--vignettes/README.txt13
-rw-r--r--vignettes/powerAnalysis.Rmd9
-rw-r--r--vignettes/powerAnalysis.Rmd.orig8
4 files changed, 19 insertions, 15 deletions
diff --git a/DESCRIPTION b/DESCRIPTION
index bccde5e..35c334c 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,6 +1,6 @@
Package: unmarked
-Version: 1.2.5.9007
-Date: 2022-10-12
+Version: 1.2.5.9008
+Date: 2022-11-15
Type: Package
Title: Models for Data from Unmarked Animals
Authors@R: c(
diff --git a/vignettes/README.txt b/vignettes/README.txt
new file mode 100644
index 0000000..2949e94
--- /dev/null
+++ b/vignettes/README.txt
@@ -0,0 +1,13 @@
+# Several vignettes (colext, power) take too long for CRAN to run
+# Thus we have to pre-generate the results.
+# The raw files (without results yet) are .Rmd.orig files
+# These are ignored in package building
+# The final files (with results) are .Rmd - these are the files that actually build the vignettes
+# To generate an .Rmd from an .Rmd.orig (eg after updating relevant code)
+
+knitr::knit("colext.Rmd.orig", output="colext.Rmd")
+knitr::knit("powerAnalysis.Rmd.orig", output="powerAnalysis.Rmd")
+
+# This will run all the R code in the .Rmd.orig file and save the results
+# directly into the corresponding .Rmd file, which will then compile instantly on CRAN
+# Note that this will also create some figure png files which should not be deleted
diff --git a/vignettes/powerAnalysis.Rmd b/vignettes/powerAnalysis.Rmd
index 414daf7..9c67344 100644
--- a/vignettes/powerAnalysis.Rmd
+++ b/vignettes/powerAnalysis.Rmd
@@ -865,13 +865,8 @@ Next call the `shinyPower` function on our template model, which starts the Shin
shinyPower(mod)
```
-A demo version of the app is embedded in this document below, which you can experiment with.
-The demo app is followed by a more detailed tutorial for the app.
-
-
-```
-## Error in loadNamespace(name): there is no package called 'webshot'
-```
+A demo version of the app you can experiment with can be found [here](https://kenkellner.shinyapps.io/unmarked-power/).
+The next section provides a more detailed tutorial for the app using screenshots.
## Tutorial
diff --git a/vignettes/powerAnalysis.Rmd.orig b/vignettes/powerAnalysis.Rmd.orig
index 58ae189..d923964 100644
--- a/vignettes/powerAnalysis.Rmd.orig
+++ b/vignettes/powerAnalysis.Rmd.orig
@@ -555,12 +555,8 @@ Next call the `shinyPower` function on our template model, which starts the Shin
shinyPower(mod)
```
-A demo version of the app is embedded in this document below, which you can experiment with.
-The demo app is followed by a more detailed tutorial for the app.
-
-```{r, echo=FALSE, out.width="100%"}
-knitr::include_url("https://kenkellner.shinyapps.io/unmarked-power/", height="800px")
-```
+A demo version of the app you can experiment with can be found [here](https://kenkellner.shinyapps.io/unmarked-power/).
+The next section provides a more detailed tutorial for the app using screenshots.
## Tutorial