tests/testthat/test-appdir.r

test_that("appdir works as expected", {
  expect_snapshot({
    app <- app_dir("ggplot2", "hadley", os = "mac")
    app$cache()
    app$log()
    app$data()
    app$config()
    app$site_data()
    app$site_config()
  })
})

Try the rappdirs package in your browser

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

rappdirs documentation built on Jan. 31, 2021, 9:06 a.m.