tests/testthat/test-CNID.R

context("test CNID")

test_that("Obtain information based on Chinese ID number", {

  # Example
  id = c(
    "652801197305161555", 
    "110101841125178"
  )
  cnid_info(id)

})

Try the CNID package in your browser

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

CNID documentation built on April 4, 2025, 5:22 a.m.