tests/testthat/teardown.R

pdf_path =  test_path('Rplots.pdf')

# check for write permission
if(isTRUE(file.access(pdf_path, mode = 2)==0))
  file.remove(pdf_path)

ffnew=dir(test_path('testdata'), pattern = '\\.swc$', recursive = T,
          full.names = T)
if(isTRUE(all(file.access(ffnew, mode = 2)==0))) {
  file.remove(ffnew)
}

Try the nat package in your browser

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

nat documentation built on Aug. 18, 2025, 5:20 p.m.