tests/testthat/test-get_asset.R

test_that("get_asset gets assets", {
  skip_on_cran()
  players_dir <- file.path(tempdir(), "players")
  get_asset("default_players", players_dir)
  expect_true(dir.exists(file.path(players_dir, "unity_assets-default_players")))
})

Try the unifir package in your browser

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

unifir documentation built on Dec. 3, 2022, 1:06 a.m.