-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.Rhistory
96 lines (96 loc) · 2.75 KB
/
.Rhistory
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
blogdown:::preview_site(startup = TRUE)
blogdown::stop_server()
blogdown::serve_site()
blogdown::stop_server()
blogdown:::preview_site(startup = TRUE)
blogdown::stop_server()
blogdown::serve_site()
blogdown::stop_server()
blogdown::serve_site()
blogdown::stop_server()
blogdown:::preview_site(startup = TRUE)
blogdown:::preview_site(startup = TRUE)
blogdown::stop_server()
blogdown:::preview_site(startup = TRUE)
blogdown::stop_server()
blogdown::serve_site()
blogdown::stop_server()
blogdown::serve_site()
blogdown::stop_server()
blogdown:::preview_site(startup = TRUE)
blogdown::stop_server()
blogdown::serve_site()
install.packages("leaflet.minicharts")
install.packages("leaflet.extras2")
install.packages("leaflet.opacity")
install.packages("leaflet.esri")
install.packages("leafgl")
library(leaflet)
leaflet() %>%
addAntpath(data = atlStorms2005)
library(leaflet.extras2)
library(leaflet)
leaflet() %>%
addAntpath(data = atlStorms2005)
library(shiny)
runApp(paste0(system.file("examples", package = "leaflet.extras2"),
"/sidebar_app.R"))
library(sf)
## Single Elements
data <- sf::st_as_sf(leaflet::atlStorms2005[1,])
data <- st_cast(data, "POINT")
data$time = as.POSIXct(
seq.POSIXt(Sys.time() - 1000, Sys.time(), length.out = nrow(data)))
leaflet() %>%
addTiles() %>%
addPlayback(data = data,
options = playbackOptions(radius = 3),
pathOpts = pathOptions(weight = 5))
data <- sf::st_as_sf(leaflet::atlStorms2005[1:5,])
data$Name <- as.character(data$Name)
data <- st_cast(data, "POINT")
data <- split(data, f = data$Name)
lapply(1:length(data), function(x) {
data[[x]]$time <<- as.POSIXct(
seq.POSIXt(Sys.time() - 1000, Sys.time(), length.out = nrow(data[[x]])))
})
leaflet() %>%
addTiles() %>%
addPlayback(data = data,
options = playbackOptions(radius = 3,
color = c("red","green","blue",
"orange","yellow")),
pathOpts = pathOptions(weight = 5))
}
blogdown:::preview_site(startup = TRUE)
blogdown::stop_server()
blogdown:::preview_site(startup = TRUE)
blogdown:::preview_site(startup = TRUE)
blogdown::stop_server()
blogdown::serve_site()
blogdown::hugo_build()
blogdown::stop_server()
blogdown::hugo_build()
blogdown::serve_site()
blogdown::stop_server()
blogdown::hugo_build()
blogdown::build_site()
remotes::install_github('rstudio/blogdown')
blogdown::build_site()
blogdown:::preview_site(startup = TRUE)
blogdown:::preview_site(startup = TRUE)
blogdown::build_site()
blogdown::stop_server()
blogdown::serve_site()
options(blogdown.draft.output = FALSE)
blogdown::build_site()
blogdown::build_site(method = "html_encoded")
getOption('blogdown.method')
blogdown::build_site(build_rmd = TRUE)
blogdown::serve_site()
blogdown::stop_server()
blogdown::build_site(build_rmd = TRUE)
blogdown::serve_site()
blogdown::stop_server()
blogdown::build_site(build_rmd = TRUE)
blogdown::build_site(build_rmd = TRUE)