-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev_swedishbirdtrends.R
56 lines (44 loc) · 1.05 KB
/
dev_swedishbirdtrends.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
library("devtools")
as.package("~/repos/swedishbirdtrends")
add_test_infrastructure()
use_data_raw()
use_github()
use_data()
use_news_md()
use_readme_rmd()
use_travis()
use_vignette("birdy-vignette")
require("devtools")
load_all()
document()
clean_vignettes()
build_vignettes()
test()
build()
install()
check()
#dev_help("swedishbirdtrends")
library(swedishbirdtrends)
data(package = "swedishbirdtrends")
data("birdtotals")
data("birdtrends")
birdtrends
birdtotals
birduuids
runApp()
runShinyApp("birdtrends")
runShinyApp("birdtotals")
#shiny::runApp()
birdtotals
runShinyApp("birdtrends")
# resave data to compress even more
library(tools)
tools::checkRdaFiles(paths = "data")
tools::resaveRdaFiles(paths = "data")
# Generate example reports
rmarkdown::render("vignettes/sbt-species-vignette.Rmd",
params = list(species = "Koltrast"), output_file = "Koltrast.html")
browseURL("vignettes/Koltrast.html")
rmarkdown::render("vignettes/sbt-species-vignette.Rmd",
params = list(species = "Vigg"), output_file = "test.html")
browseURL("vignettes/test.html")