tests/testthat/test-bio3d.R

describe("m_fetch_pdb()", {
  it("stop the function if pdb isn't a string", {
    expect_error(
      m_fetch_pdb(1),
      "pdb must be character string. e.g.'1bna'"
    )
  })
})

Try the r3dmol package in your browser

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

r3dmol documentation built on March 14, 2021, 5:08 p.m.