tests/testthat/test-write_codemeta.R

test_that("write_codemeta", {

  # Safer version
  path <- find.package("codemeta")
  codemeta.json <- tempfile(fileext =".json")
  write_codemeta(path, file = codemeta.json)

  expect_true(file.exists(codemeta.json ))

})

Try the codemeta package in your browser

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

codemeta documentation built on Dec. 22, 2021, 1:06 a.m.