Running 'testthat.R' [8s/73s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(radtools)
  > 
  > test_check("radtools")
  trying URL 'http://barre.nom.fr/medical/samples/files/CT-MONO2-16-ort.gz'
  Content type 'application/x-gzip' length 246877 bytes (241 KB)
  ==================================================
  downloaded 241 KB
  
  trying URL 'http://barre.nom.fr/medical/samples/files/CT-MONO2-16-brain.gz'
  Content type 'application/x-gzip' length 261311 bytes (255 KB)
  ==================================================
  downloaded 255 KB
  
  trying URL 'http://barre.nom.fr/medical/samples/files/MR-MONO2-16-head.gz'
  Content type 'application/x-gzip' length 70273 bytes (68 KB)
  ==================================================
  downloaded 68 KB
  
  trying URL 'http://barre.nom.fr/medical/samples/files/MR-MONO2-16-knee.gz'
  Content type 'application/x-gzip' length 69484 bytes (67 KB)
  ==================================================
  downloaded 67 KB
  
  trying URL 'http://barre.nom.fr/medical/samples/files/MR-MONO2-8-16x-heart.gz'
  Content type 'application/x-gzip' length 337207 bytes (329 KB)
  ==================================================
  downloaded 329 KB
  
  trying URL 'http://barre.nom.fr/medical/samples/files/NM-MONO2-16-13x-heart.gz'
  Content type 'application/x-gzip' length 24002 bytes (23 KB)
  ==================================================
  downloaded 23 KB
  
  trying URL 'http://barre.nom.fr/medical/samples/files/US-MONO2-8-8x-execho.gz'
  Content type 'application/x-gzip' length 86068 bytes (84 KB)
  ==================================================
  downloaded 84 KB
  
  trying URL 'http://www.dclunie.com/images/charset/charsettests.20070405.tar.bz2'
  Content type 'binary/octet-stream' length 6110 bytes
  ==================================================
  downloaded 6110 bytes
  
  trying URL 'http://www.dclunie.com/images/compressed/deflate_tests_release.tar.gz'
  Content type 'application/x-gzip' length 65476 bytes (63 KB)
  ==================================================
  downloaded 63 KB
  
  trying URL 'http://www.dclunie.com/images/signedrange/signedrangeimages.tar.bz2'
  Content type 'application/x-bzip2' length 278192 bytes (271 KB)
  ==================================================
  downloaded 271 KB
  
  trying URL 'https://nifti.nimh.nih.gov/nifti-1/data//avg152T1_LR_nifti.hdr.gz'
  Error in download.file(paste(url_nimh, name_gz, sep = "/"), gz) : 
    cannot open URL 'https://nifti.nimh.nih.gov/nifti-1/data//avg152T1_LR_nifti.hdr.gz'
  Calls: test_check ... FUN -> eval -> eval -> download_nimh -> download.file
  In addition: Warning messages:
  1: In dir.create(outdir_nifti, recursive = TRUE) :
    '/tmp/RtmpovqPu6' already exists
  2: In download.file(paste(url_nimh, name_gz, sep = "/"), gz) :
    cannot open URL 'https://nifti.nimh.nih.gov/nifti-1/data//avg152T1_LR_nifti.hdr.gz': HTTP status was '502 Bad Gateway'
  Execution halted