tests/testthat/_snaps/embed.md

renv::embed() works with .R files

Code
  writeLines(readLines("test-embed.R"))
Output
  renv::use(
    bread     = "bread@1.0.0",
    breakfast = "breakfast@1.0.0",
    oatmeal   = "oatmeal@1.0.0",
    toast     = "toast@1.0.0"
  )

  library(breakfast)


Try the renv package in your browser

Any scripts or data that you put into this service are public.

renv documentation built on Jan. 16, 2026, 5:08 p.m.