Skip to content

Commit

Permalink
fix: Use native pipe instead of %>%
Browse files Browse the repository at this point in the history
We no longer import the magrittr pipe
  • Loading branch information
kellijohnson-NOAA committed Jun 18, 2024
1 parent ceef4b9 commit f939fc0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"githubPullRequests.ignoredPullRequestBranches": [
"main"
]
}
10 changes: 5 additions & 5 deletions vignettes/fims-documentation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ doc_list <- list(
library(tidyverse)
list2markdown <- function(list) {
enframe(list) %>%
group_by(name) %>%
enframe(list) |>
group_by(name) |>
mutate(items = paste0(
"- ",
name,
Expand All @@ -172,9 +172,9 @@ list2markdown <- function(list) {
unlist(value),
collapse = ""
)
)) %>%
pull(items) %>%
paste0(collapse = "\n") %>%
)) |>
pull(items) |>
paste0(collapse = "\n") |>
cat()
}
```
Expand Down

0 comments on commit f939fc0

Please sign in to comment.