Skip to content

Commit bc6ba2a

Browse files
committed
specific package calls and as_tibble
1 parent 42637f0 commit bc6ba2a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/announcements.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020

2121
if (!require(devtools)) install.packages("devtools")
2222
devtools::install_dev_deps()
23-
library(tidyverse)
23+
library(stringr)
24+
library(dplyr)
25+
library(purrr)
2426
library(lubridate)
2527
library(glue)
2628
library(assertr)
@@ -30,7 +32,7 @@ library(yaml)
3032

3133
session_details <-
3234
yaml.load_file(here::here("_data", "events.yml")) %>%
33-
map_dfr(as.tibble) %>%
35+
map_dfr(as_tibble) %>%
3436
arrange(date) %>%
3537
# drop sessions that are not set (NA in date)
3638
filter(!is.na(date)) %>%
@@ -41,7 +43,7 @@ session_details <-
4143
location_url = na_if(location_url, ""),
4244
location_string = case_when(
4345
# 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})"),
4547
# if only location is included!is.na(location) &
4648
is.na(location_url) ~ location,
4749
# if neither location nor url are included
@@ -50,7 +52,7 @@ session_details <-
5052

5153
coffee_code_details <-
5254
yaml.load_file(here::here("_data", "coffee-code.yml")) %>%
53-
map_dfr(as.tibble) %>%
55+
map_dfr(as_tibble) %>%
5456
arrange(date) %>%
5557
# drop sessions that are not set (NA in date)
5658
filter(!is.na(date)) %>%

0 commit comments

Comments
 (0)