Skip to content

Instantly share code, notes, and snippets.

View malcalakovalski's full-sized avatar

Manuel Alcalá Kovalski malcalakovalski

  • The Urban Institute
  • Washington D.C.
View GitHub Profile
@malcalakovalski
malcalakovalski / user-prefs.json
Created February 16, 2024 16:46
{rsprefs} RStudio Preferences Sync
{
"sync": {
"always_save_history": false,
"auto_detect_indentation": true,
"auto_expand_error_tracebacks": true,
"background_diagnostics_delay_ms": 1,
"check_unexpected_assignment_in_function_call": true,
"code_completion_characters": 2,
"code_completion_delay": 2,
"code_completion_other": "triggered",
@malcalakovalski
malcalakovalski / thp_theme_test.R
Last active December 13, 2021 20:46
Hamilton theme demo
# Setup -------------------------------------------------------------------
librarian::shelf(tidyverse, palmerpenguins, ggbrookings)
devtools::load_all()
# Import fonts if they are new
import_thp_fonts()
# Register them so R can find them
register_thp_fonts()
# Set the default theme as thp
theme_set(theme_thp())
# Setup -------------------------------------------------------------------
librarian::shelf(tidyverse, lubridate, systemfonts, ggtext, ragg,
ggbump)
scoobydoo <-
readr::read_csv(
'https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-07-13/scoobydoo.csv',
na = 'NULL'
)
@malcalakovalski
malcalakovalski / monster_types.R
Created July 13, 2021 20:02
Week 29 of #TidyTuesday
# Setup -------------------------------------------------------------------
librarian::shelf(tidyverse, systemfonts, ggtext, ragg)
scoobydoo <-
readr::read_csv(
'https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-07-13/scoobydoo.csv',
na = 'NULL'
)
# Tidy --------------------------------------------------------------------
tidy_scooby <-
scoobydoo %>%