File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 20
20
21
21
if (! require(devtools )) install.packages(" devtools" )
22
22
devtools :: install_dev_deps()
23
- library(tidyverse )
23
+ library(stringr )
24
+ library(dplyr )
25
+ library(purrr )
24
26
library(lubridate )
25
27
library(glue )
26
28
library(assertr )
@@ -30,7 +32,7 @@ library(yaml)
30
32
31
33
session_details <-
32
34
yaml.load_file(here :: here(" _data" , " events.yml" )) %> %
33
- map_dfr(as.tibble ) %> %
35
+ map_dfr(as_tibble ) %> %
34
36
arrange(date ) %> %
35
37
# drop sessions that are not set (NA in date)
36
38
filter(! is.na(date )) %> %
@@ -41,7 +43,7 @@ session_details <-
41
43
location_url = na_if(location_url , " " ),
42
44
location_string = case_when(
43
45
# if both location and url are included!is.na(location) &
44
- ! is.na(location_url ) ~ glue :: glue (" [{location}]({location_url})" ),
46
+ ! is.na(location_url ) ~ glue(" [{location}]({location_url})" ),
45
47
# if only location is included!is.na(location) &
46
48
is.na(location_url ) ~ location ,
47
49
# if neither location nor url are included
@@ -50,7 +52,7 @@ session_details <-
50
52
51
53
coffee_code_details <-
52
54
yaml.load_file(here :: here(" _data" , " coffee-code.yml" )) %> %
53
- map_dfr(as.tibble ) %> %
55
+ map_dfr(as_tibble ) %> %
54
56
arrange(date ) %> %
55
57
# drop sessions that are not set (NA in date)
56
58
filter(! is.na(date )) %> %
You can’t perform that action at this time.
0 commit comments