#> base <\/td> #> | c[2], mean[1], sum[1] <\/td> #> <\/tr> #> <\/tbody> #> <\/table>"},{"path":"https://cgoo4.github.io/usedthese/reference/used_there.html","id":null,"dir":"Reference","previous_headings":"","what":"Scrape the summaries for site-wide analysis — used_there","title":"Scrape the summaries for site-wide analysis — used_there","text":"Harvests consolidates function usage tables pages Quarto website searching tables CSS class \"usedthese\"","code":""},{"path":"https://cgoo4.github.io/usedthese/reference/used_there.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Scrape the summaries for site-wide analysis — used_there","text":"","code":"used_there(url, num_links = 30)"},{"path":"https://cgoo4.github.io/usedthese/reference/used_there.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Scrape the summaries for site-wide analysis — used_there","text":"url url website listing page posts containing usage tables created used_here() num_links number links returned listing page may restricted using argument.","code":""},{"path":"https://cgoo4.github.io/usedthese/reference/used_there.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Scrape the summaries for site-wide analysis — used_there","text":"tibble summarising package & function usage","code":""},{"path":"https://cgoo4.github.io/usedthese/reference/used_there.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Scrape the summaries for site-wide analysis — used_there","text":"","code":"# Uses a Quarto listing url to scrape & consolidate usage used_there(\"https://www.quantumjitter.com/project/\", 1) #> # A tibble: 42 × 4 #> Package Function n url #> #> 1 base as.Date 1 https://www.quantumjitter.com/project/j… #> 2 base as.numeric 1 https://www.quantumjitter.com/project/j… #> 3 base c 2 https://www.quantumjitter.com/project/j… #> 4 base is.na 1 https://www.quantumjitter.com/project/j… #> 5 base library 8 https://www.quantumjitter.com/project/j… #> 6 base max 1 https://www.quantumjitter.com/project/j… #> 7 base sum 4 https://www.quantumjitter.com/project/j… #> 8 clock date_format 1 https://www.quantumjitter.com/project/j… #> 9 conflicted conflict_prefer 2 https://www.quantumjitter.com/project/j… #> 10 conflicted conflict_prefer_all 1 https://www.quantumjitter.com/project/j… #> # ℹ 32 more rows"},{"path":"https://cgoo4.github.io/usedthese/reference/usedthese-package.html","id":null,"dir":"Reference","previous_headings":"","what":"usedthese: Summarises Package & Function Usage — usedthese-package","title":"usedthese: Summarises Package & Function Usage — usedthese-package","text":"Consistent 'knitr' syntax highlighting, 'usedthese' adds summary table package & function usage Quarto document enables aggregation usage across website.","code":""},{"path":[]},{"path":"https://cgoo4.github.io/usedthese/reference/usedthese-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"usedthese: Summarises Package & Function Usage — usedthese-package","text":"Maintainer: Carl Goodwin carl.goodwin@quantumjitter.com [copyright holder]","code":""},{"path":[]},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-050","dir":"Changelog","previous_headings":"","what":"usedthese 0.5.0","title":"usedthese 0.5.0","text":"Refactored code. Improved error messages using cli_abort. Centralised roxygen @importFrom tags. Used mocking test without need internet connection. Added test non-scalar num_links. Updated citation.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-040","dir":"Changelog","previous_headings":"","what":"usedthese 0.4.0","title":"usedthese 0.4.0","text":"CRAN release: 2024-05-27 Spring clean. Default branch master main.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-033","dir":"Changelog","previous_headings":"","what":"usedthese 0.3.3","title":"usedthese 0.3.3","text":"CRAN release: 2023-06-15 Fixed occasional used_here() warning. Documentation updates.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-032","dir":"Changelog","previous_headings":"","what":"usedthese 0.3.2","title":"usedthese 0.3.2","text":"CRAN release: 2023-03-24 used_there() fails gracefully Internet resource unavailable.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-031","dir":"Changelog","previous_headings":"","what":"usedthese 0.3.1","title":"usedthese 0.3.1","text":"CRAN release: 2023-02-24 Patch update fix test error. Default used_there() num_links 30.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-030","dir":"Changelog","previous_headings":"","what":"usedthese 0.3.0","title":"usedthese 0.3.0","text":"CRAN release: 2023-02-15 Respects include.exclude arguments specified library(). Small performance improvement dplyr 1.1 tidyr 1.3. Remove suggests meta-packages tidyverse fpp3.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-020","dir":"Changelog","previous_headings":"","what":"usedthese 0.2.0","title":"usedthese 0.2.0","text":"CRAN release: 2023-01-21 Support use conflicted package. Include functions using double-colon operator. Resolve cases function counted two packages.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-010","dir":"Changelog","previous_headings":"","what":"usedthese 0.1.0","title":"usedthese 0.1.0","text":"CRAN release: 2023-01-16 First submission CRAN.","code":""}]
+[{"path":"https://cgoo4.github.io/usedthese/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2023 usedthese authors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://cgoo4.github.io/usedthese/articles/usedthese.html","id":"some-code","dir":"Articles","previous_headings":"","what":"Some code","title":"Getting Started","text":"","code":"options(tidyverse.quiet = TRUE) options(xts.warn_dplyr_breaks_lag = FALSE) library(conflicted) library(dplyr) library(tibble) conflicts_prefer(dplyr::filter, dplyr::last) #> [conflicted] Will prefer dplyr::filter over any other package. #> [conflicted] Will prefer dplyr::last over any other package. library(usedthese) library(xts, exclude = \"first\") #> Loading required package: zoo #> #> Attaching package: 'zoo' #> #> The following objects are masked from 'package:base': #> #> as.Date, as.Date.numeric conflict_scout() #> 3 conflicts #> • `filter()`: dplyr #> • `lag()`: dplyr and stats #> • `last()`: dplyr"},{"path":"https://cgoo4.github.io/usedthese/articles/usedthese.html","id":"more-code","dir":"Articles","previous_headings":"","what":"More code","title":"Getting Started","text":"","code":"tribble(~group, ~a1, ~a2, ~b1, \"x\", 1, 2, 3, \"x\", 4, 5, 6, \"y\", 7, 8, 9) |> select(-starts_with(\"b\")) |> filter(group == \"x\") |> mutate(first_a1 = first(a1), last_a2 = last(a2)) #> # A tibble: 2 × 5 #> group a1 a2 first_a1 last_a2 #> #> 1 x 1 2 1 5 #> 2 x 4 5 1 5"},{"path":"https://cgoo4.github.io/usedthese/articles/usedthese.html","id":"summary-of-usage","dir":"Articles","previous_headings":"","what":"Summary of usage","title":"Getting Started","text":"example , tribble() counted (originating) tibble package even though also loaded dplyr. used conflicted package, filter() example shown package name “dplyr, stats”. rendered table assigned CSS class .usedthese help used_* functions find aggregate multiple tables across one websites.","code":"used_here()"},{"path":"https://cgoo4.github.io/usedthese/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Carl Goodwin. Author, maintainer, copyright holder.","code":""},{"path":"https://cgoo4.github.io/usedthese/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Goodwin, Carl. 2024. Summarise package & function usage {usedthese}. https://cgoo4.github.io/usedthese/","code":"@Manual{, title = {Summarise package & function usage with {usedthese}}, author = {Carl Goodwin}, year = {2024}, url = {https://cgoo4.github.io/usedthese/}, }"},{"path":[]},{"path":"https://cgoo4.github.io/usedthese/index.html","id":"overview","dir":"","previous_headings":"","what":"Overview","title":"Summarises Package & Function Usage","text":"usedthese pair functions summarise package & function usage Quarto documents consistent knitr’s syntax highlighting: used_here() adds nicely-rendered summary table usage single document; used_there() harvests consolidates tables created ready site-wide analysis.","code":""},{"path":"https://cgoo4.github.io/usedthese/index.html","id":"example-use-case","dir":"","previous_headings":"","what":"Example Use Case","title":"Summarises Package & Function Usage","text":"“little project” Quarto website quantumjitter.com focuses data science technique machine learning model analyse real-world data. foot quantified view R packages functions used associated code. achieved including used_here() Quarto document. used_there() scrapes tables created used_here() enable Favourite Things article packages functions used across website. personally find approach makes easier check consistency usage, acknowledge packages need keep abreast (go deeper ), spot opportunities updates latest greatest. Tidyverse blog announced changes dplyr purrr quick review Favourite Things identified number opportunities try exciting new features. example, dplyr introduced temporary grouping .argument mutate amigos. group_by() ungroup() used many times occurrences replaced new concise approach.","code":""},{"path":"https://cgoo4.github.io/usedthese/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Summarises Package & Function Usage","text":"","code":"install.packages(\"usedthese\")"},{"path":"https://cgoo4.github.io/usedthese/index.html","id":"development-version","dir":"","previous_headings":"","what":"Development version","title":"Summarises Package & Function Usage","text":"get bug fix, use feature development version, can install usedthese GitHub.","code":"# install.packages(\"pak\") pak::pak(\"cgoo4/usedthese\")"},{"path":"https://cgoo4.github.io/usedthese/reference/used_here.html","id":null,"dir":"Reference","previous_headings":"","what":"Summarise function usage in a single document — used_here","title":"Summarise function usage in a single document — used_here","text":"Consistent knitr syntax highlighting, used_here() adds summary table R package & function usage knitted Quarto R Markdown document","code":""},{"path":"https://cgoo4.github.io/usedthese/reference/used_here.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Summarise function usage in a single document — used_here","text":"","code":"used_here(fil = current_input())"},{"path":"https://cgoo4.github.io/usedthese/reference/used_here.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Summarise function usage in a single document — used_here","text":"fil usage summary required document currently knitting, argument need specified. want create summary running just code chunk, necessary specify quoted name saved file. first load attach packages used fresh R session.","code":""},{"path":"https://cgoo4.github.io/usedthese/reference/used_here.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Summarise function usage in a single document — used_here","text":"printed kable table css class \"usedthese\"","code":""},{"path":"https://cgoo4.github.io/usedthese/reference/used_here.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Summarise function usage in a single document — used_here","text":"rendered summary includes rows package name multiple packages separated comma, due unresolved conflict. recommended approach use 'conflicted' package.","code":""},{"path":"https://cgoo4.github.io/usedthese/reference/used_here.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Summarise function usage in a single document — used_here","text":"","code":"# Simple example which mimics a two-line script and creates # an html table with a CSS class \"usedthese\" usedthese::used_here(\"mean(c(1, 2, 3))\\nsum(c(1, 2, 3))\") #> #> #> #> Package <\/th> #> | Function <\/th> #> <\/tr> #> <\/thead> #> | #> #> base <\/td> #> | c[2], mean[1], sum[1] <\/td> #> <\/tr> #> <\/tbody> #> <\/table>"},{"path":"https://cgoo4.github.io/usedthese/reference/used_there.html","id":null,"dir":"Reference","previous_headings":"","what":"Scrape the summaries for site-wide analysis — used_there","title":"Scrape the summaries for site-wide analysis — used_there","text":"Harvests consolidates function usage tables pages Quarto website searching tables CSS class \"usedthese\"","code":""},{"path":"https://cgoo4.github.io/usedthese/reference/used_there.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Scrape the summaries for site-wide analysis — used_there","text":"","code":"used_there(url, num_links = 30)"},{"path":"https://cgoo4.github.io/usedthese/reference/used_there.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Scrape the summaries for site-wide analysis — used_there","text":"url url website listing page posts containing usage tables created used_here() num_links number links returned listing page may restricted using argument.","code":""},{"path":"https://cgoo4.github.io/usedthese/reference/used_there.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Scrape the summaries for site-wide analysis — used_there","text":"tibble summarising package & function usage","code":""},{"path":"https://cgoo4.github.io/usedthese/reference/used_there.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Scrape the summaries for site-wide analysis — used_there","text":"","code":"# Uses a Quarto listing url to scrape & consolidate usage used_there(\"https://www.quantumjitter.com/project/\", 1) #> # A tibble: 42 × 4 #> Package Function n url #> #> 1 base as.Date 1 https://www.quantumjitter.com/project/j… #> 2 base as.numeric 1 https://www.quantumjitter.com/project/j… #> 3 base c 2 https://www.quantumjitter.com/project/j… #> 4 base is.na 1 https://www.quantumjitter.com/project/j… #> 5 base library 8 https://www.quantumjitter.com/project/j… #> 6 base max 1 https://www.quantumjitter.com/project/j… #> 7 base sum 4 https://www.quantumjitter.com/project/j… #> 8 clock date_format 1 https://www.quantumjitter.com/project/j… #> 9 conflicted conflict_prefer 2 https://www.quantumjitter.com/project/j… #> 10 conflicted conflict_prefer_all 1 https://www.quantumjitter.com/project/j… #> # ℹ 32 more rows"},{"path":"https://cgoo4.github.io/usedthese/reference/usedthese-package.html","id":null,"dir":"Reference","previous_headings":"","what":"usedthese: Summarises Package & Function Usage — usedthese-package","title":"usedthese: Summarises Package & Function Usage — usedthese-package","text":"Consistent 'knitr' syntax highlighting, 'usedthese' adds summary table package & function usage Quarto document enables aggregation usage across website.","code":""},{"path":[]},{"path":"https://cgoo4.github.io/usedthese/reference/usedthese-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"usedthese: Summarises Package & Function Usage — usedthese-package","text":"Maintainer: Carl Goodwin carl.goodwin@quantumjitter.com [copyright holder]","code":""},{"path":[]},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-050","dir":"Changelog","previous_headings":"","what":"usedthese 0.5.0","title":"usedthese 0.5.0","text":"CRAN release: 2024-06-26 Refactored code. Improved error messages using cli_abort. Centralised roxygen @importFrom tags. Used mocking test without need internet connection. Added test non-scalar num_links. Updated citation.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-040","dir":"Changelog","previous_headings":"","what":"usedthese 0.4.0","title":"usedthese 0.4.0","text":"CRAN release: 2024-05-27 Spring clean. Default branch master main.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-033","dir":"Changelog","previous_headings":"","what":"usedthese 0.3.3","title":"usedthese 0.3.3","text":"CRAN release: 2023-06-15 Fixed occasional used_here() warning. Documentation updates.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-032","dir":"Changelog","previous_headings":"","what":"usedthese 0.3.2","title":"usedthese 0.3.2","text":"CRAN release: 2023-03-24 used_there() fails gracefully Internet resource unavailable.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-031","dir":"Changelog","previous_headings":"","what":"usedthese 0.3.1","title":"usedthese 0.3.1","text":"CRAN release: 2023-02-24 Patch update fix test error. Default used_there() num_links 30.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-030","dir":"Changelog","previous_headings":"","what":"usedthese 0.3.0","title":"usedthese 0.3.0","text":"CRAN release: 2023-02-15 Respects include.exclude arguments specified library(). Small performance improvement dplyr 1.1 tidyr 1.3. Remove suggests meta-packages tidyverse fpp3.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-020","dir":"Changelog","previous_headings":"","what":"usedthese 0.2.0","title":"usedthese 0.2.0","text":"CRAN release: 2023-01-21 Support use conflicted package. Include functions using double-colon operator. Resolve cases function counted two packages.","code":""},{"path":"https://cgoo4.github.io/usedthese/news/index.html","id":"usedthese-010","dir":"Changelog","previous_headings":"","what":"usedthese 0.1.0","title":"usedthese 0.1.0","text":"CRAN release: 2023-01-16 First submission CRAN.","code":""}]
| |