Skip to content

Instantly share code, notes, and snippets.

@multimeric
multimeric / memory.md
Created March 14, 2024 00:24
Demonstration of odd memory usage in R whereby the resident set size (RSS) doesn't change despite allocating more memory and later clearing it
RSQLite::SQLite() |>
  DBI::dbConnect(":memory:") |>
  RSQLite::dbWriteTable("foo", data.frame(
  a = numeric(1E8)
))
invisible(gc())
ps::ps_memory_info()