Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix the feed #30

Merged
merged 2 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"hash": "a8b54ec9dc65af8bf5ae4b80272f002a",
"hash": "e4424e68926dbb1ab6fb891e3675eed6",
"result": {
"markdown": "---\ntitle: \"Seal of Approval: dtplyr\"\nauthor: \"Kelly Bodwin\"\ndate: \"May 07, 2024\"\ncategories: [seal of approval, bridge package]\nimage: \"hex.png\"\ndraft: true\n---\n\n\n## [`dtplyr`](https://github.com/tidyverse/dtplyr)\n\n*Author(s):*\tHadley Wickham, Maximilian Girlich, Mark Fairbanks, Ryan Dickerson, Posit Software PBC\n\n*Maintainer:*\tHadley Wickham (hadley\\@posit.co)\n\n[Seal of Approval](<link to approval>)\n\n![dtplyr hex sticker](hex.png)\n\nProvides a `data.table` backend for `dplyr`. The goal of `dtplyr` is to allow you to write `dplyr` code that is automatically translated to the equivalent, but usually much faster, `data.table` code.\n\n## Relationship with `data.table`\n\n`dtplyr` is a bridge for users who are more comfortable with the `dplyr` syntax, but who want to take advantage of the speed and efficiency benefits of `data.table`. This package exactly duplicates the core functions of `dplyr`, but replaces the back-end source code (originally in Base R) with `data.table` operations.\n\n## Overview\n\n*Excerpted from the [`dtplyr` vignette](https://dtplyr.tidyverse.org/)*\n\nTo use `dtplyr`, you must at least load `dtplyr` and `dplyr`. You may also want to load `data.table` so you can access the other goodies that it provides:\n\n\n::: {.cell}\n\n```{.r .cell-code}\nlibrary(data.table)\nlibrary(dtplyr)\nlibrary(dplyr, warn.conflicts = FALSE)\n```\n:::\n\n\n\nThen use `lazy_dt()` to create a “lazy” `data.table` object that tracks the operations performed on it.\n\n\n::: {.cell}\n\n```{.r .cell-code}\nmtcars2 <- lazy_dt(mtcars)\n```\n:::\n\n\nYou can preview the transformation (including the generated `data.table` code) by printing the result:\n\n\n::: {.cell}\n\n```{.r .cell-code}\nmtcars2 %>% \n filter(wt < 5) %>% \n mutate(l100k = 235.21 / mpg) %>% # liters / 100 km\n group_by(cyl) %>% \n summarise(l100k = mean(l100k))\n```\n\n::: {.cell-output .cell-output-stdout}\n```\nSource: local data table [3 x 2]\nCall: `_DT1`[wt < 5][, `:=`(l100k = 235.21/mpg)][, .(l100k = mean(l100k)), \n keyby = .(cyl)]\n\n cyl l100k\n <dbl> <dbl>\n1 4 9.05\n2 6 12.0 \n3 8 14.9 \n\n# Use as.data.table()/as.data.frame()/as_tibble() to access results\n```\n:::\n:::\n\n\nBut generally you should reserve this only for debugging, and use `as.data.table()`, `as.data.frame()`, or `as_tibble()` to indicate that you’re done with the transformation and want to access the results:\n\n\n::: {.cell}\n\n```{.r .cell-code}\nmtcars2 %>% \n filter(wt < 5) %>% \n mutate(l100k = 235.21 / mpg) %>% # liters / 100 km\n group_by(cyl) %>% \n summarise(l100k = mean(l100k)) %>% \n as_tibble()\n```\n\n::: {.cell-output .cell-output-stdout}\n```\n# A tibble: 3 × 2\n cyl l100k\n <dbl> <dbl>\n1 4 9.05\n2 6 12.0 \n3 8 14.9 \n```\n:::\n:::",
"markdown": "---\ntitle: \"Seal of Approval: dtplyr\"\nauthor: \"Kelly Bodwin\"\ndate: \"May 07, 2024\"\ncategories: [seal of approval, bridge package]\nimage: \"hex.png\"\ndraft: true\n---\n\n\n## [`dtplyr`](https://github.com/tidyverse/dtplyr)\n\n::::{.columns}\n\n:::{.column width=\"40%\"}\n\n![dtplyr hex sticker](hex.png)\n:::\n\n\n:::{.column width=\"60%\"}\n\n*Author(s):*\tHadley Wickham, Maximilian Girlich, Mark Fairbanks, Ryan Dickerson, Posit Software PBC\n\n*Maintainer:*\tHadley Wickham (hadley\\@posit.co)\n\n[Seal of Approval](<link to approval>)\n\n\nProvides a `data.table` backend for `dplyr`. The goal of `dtplyr` is to allow you to write `dplyr` code that is automatically translated to the equivalent, but usually much faster, `data.table` code.\n\n:::\n\n::::\n\n## Relationship with `data.table`\n\n`dtplyr` is a bridge for users who are more comfortable with the `dplyr` syntax, but who want to take advantage of the speed and efficiency benefits of `data.table`. This package exactly duplicates the core functions of `dplyr`, but replaces the back-end source code (originally in Base R) with `data.table` operations.\n\n## Overview\n\n*Excerpted from the [`dtplyr` vignette](https://dtplyr.tidyverse.org/)*\n\nTo use `dtplyr`, you must at least load `dtplyr` and `dplyr`. You may also want to load `data.table` so you can access the other goodies that it provides:\n\n\n::: {.cell}\n\n```{.r .cell-code}\nlibrary(data.table)\nlibrary(dtplyr)\nlibrary(dplyr, warn.conflicts = FALSE)\n```\n:::\n\n\n\nThen use `lazy_dt()` to create a “lazy” `data.table` object that tracks the operations performed on it.\n\n\n::: {.cell}\n\n```{.r .cell-code}\nmtcars2 <- lazy_dt(mtcars)\n```\n:::\n\n\nYou can preview the transformation (including the generated `data.table` code) by printing the result:\n\n\n::: {.cell}\n\n```{.r .cell-code}\nmtcars2 %>% \n filter(wt < 5) %>% \n mutate(l100k = 235.21 / mpg) %>% # liters / 100 km\n group_by(cyl) %>% \n summarise(l100k = mean(l100k))\n```\n\n::: {.cell-output .cell-output-stdout}\n```\nSource: local data table [3 x 2]\nCall: `_DT1`[wt < 5][, `:=`(l100k = 235.21/mpg)][, .(l100k = mean(l100k)), \n keyby = .(cyl)]\n\n cyl l100k\n <dbl> <dbl>\n1 4 9.05\n2 6 12.0 \n3 8 14.9 \n\n# Use as.data.table()/as.data.frame()/as_tibble() to access results\n```\n:::\n:::\n\n\nBut generally you should reserve this only for debugging, and use `as.data.table()`, `as.data.frame()`, or `as_tibble()` to indicate that you’re done with the transformation and want to access the results:\n\n\n::: {.cell}\n\n```{.r .cell-code}\nmtcars2 %>% \n filter(wt < 5) %>% \n mutate(l100k = 235.21 / mpg) %>% # liters / 100 km\n group_by(cyl) %>% \n summarise(l100k = mean(l100k)) %>% \n as_tibble()\n```\n\n::: {.cell-output .cell-output-stdout}\n```\n# A tibble: 3 × 2\n cyl l100k\n <dbl> <dbl>\n1 4 9.05\n2 6 12.0 \n3 8 14.9 \n```\n:::\n:::",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
Expand Down
12 changes: 1 addition & 11 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,7 @@ listing:
contents: posts
sort: "date desc"
type: default
feed:
categories:
- documentation
- announcements
- funding opportunity
- grant
- guest post
- tutorials
- tips
- testing
- developer
feed: true
sort-ui: false
filter-ui: false

Expand Down
68 changes: 0 additions & 68 deletions docs/about-announcements.feed-full-staged

This file was deleted.

365 changes: 0 additions & 365 deletions docs/about-announcements.xml

This file was deleted.

46 changes: 0 additions & 46 deletions docs/about-developer.feed-full-staged

This file was deleted.

Loading