Skip to content

Commit

Permalink
Import stringr
Browse files Browse the repository at this point in the history
  • Loading branch information
froggleston committed Oct 17, 2024
1 parent fad4e9f commit 053a5eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ Imports:
callr,
servr,
utils,
tools
tools,
stringr
Suggests:
testthat (>= 3.0.0),
covr,
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export(build_episode_html)
export(build_episode_md)
export(build_handout)
export(build_glossary)
export(build_lesson)
export(check_lesson)
export(create_episode)
Expand Down
3 changes: 0 additions & 3 deletions R/build_glossary.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ get_glossary_links <- function(episode) {
hrefs <- xml2::xml_attr(links, "href")
glos_links <- links[stringr::str_detect(hrefs, "^https://glosario.carpentries.org/")]

#links <- links[xml2::xml_attr(links, "href") %>%
# stringr::str_detect("^https://glosario.carpentries.org/")]

clean_links <- character()
for (link in glos_links) {
href <- xml2::xml_attr(link, "href")
Expand Down

0 comments on commit 053a5eb

Please sign in to comment.