Running ‘testthat.R’ [4s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > test_check("MALDIquantForeign")
  Loading required package: MALDIquantForeign
  Loading required package: MALDIquant
  
  This is MALDIquant version 1.22.1
  Quantitative Analysis of Mass Spectrometry Data
   See '?MALDIquant' for more information about this package.
  
  [ FAIL 11 | WARN 0 | SKIP 1 | PASS 236 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test_download-functions.R:12:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_exportMsd-methods.R:40:3'): .exportMsd ───────────────────────
  readLines(file.path(tmp, "m.msd"))[-c(4:5)] not equal to msd[-c(4:5)].
  2/18 mismatches
  x[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFwC
  x[11]: ERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</mzArray>"
  y[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjYA
  y[11]: CBD/YMEOAAoTigtACUFnEAADZ/Alw=</mzArray>"
  
  x[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFw
  x[12]: DENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</intArray>"
  y[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjY
  y[12]: AABCQcwxSADpRWgtBKUVnEAAB9MAds=</intArray>"
  ── Failure ('test_exportMsd-methods.R:45:3'): exportMsd,MassSpectrum ───────────
  readLines(file.path(tmp, "msp.msd"))[-c(4:5)] not equal to msd[-c(4:5)].
  2/18 mismatches
  x[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFwC
  x[11]: ERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</mzArray>"
  y[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjYA
  y[11]: CBD/YMEOAAoTigtACUFnEAADZ/Alw=</mzArray>"
  
  x[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFw
  x[12]: DENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</intArray>"
  y[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjY
  y[12]: AABCQcwxSADpRWgtBKUVnEAAB9MAds=</intArray>"
  ── Failure ('test_exportMsd-methods.R:47:3'): exportMsd,MassSpectrum ───────────
  readLines(file.path(tmp, "ms.msd"))[-c(4:5)] not equal to msd[-c(4:5, 16:19)].
  2/14 mismatches
  x[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFwC
  x[11]: ERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</mzArray>"
  y[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjYA
  y[11]: CBD/YMEOAAoTigtACUFnEAADZ/Alw=</mzArray>"
  
  x[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFw
  x[12]: DENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</intArray>"
  y[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjY
  y[12]: AABCQcwxSADpRWgtBKUVnEAAB9MAds=</intArray>"
  ── Failure ('test_exportMsd-methods.R:54:3'): exportMsd,list ───────────────────
  readLines(file.path(tmp, "1.msd"))[-c(4:5)] not equal to msd[-c(4:5)].
  2/18 mismatches
  x[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFwC
  x[11]: ERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</mzArray>"
  y[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjYA
  y[11]: CBD/YMEOAAoTigtACUFnEAADZ/Alw=</mzArray>"
  
  x[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFw
  x[12]: DENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</intArray>"
  y[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjY
  y[12]: AABCQcwxSADpRWgtBKUVnEAAB9MAds=</intArray>"
  ── Failure ('test_exportMsd-methods.R:55:3'): exportMsd,list ───────────────────
  readLines(file.path(tmp, "2.msd"))[-c(4:5)] not equal to msd[-c(4:5)].
  2/18 mismatches
  x[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFwC
  x[11]: ERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</mzArray>"
  y[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjYA
  y[11]: CBD/YMEOAAoTigtACUFnEAADZ/Alw=</mzArray>"
  
  x[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFw
  x[12]: DENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</intArray>"
  y[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjY
  y[12]: AABCQcwxSADpRWgtBKUVnEAAB9MAds=</intArray>"
  ── Failure ('test_exportMsd-methods.R:57:3'): exportMsd,list ───────────────────
  readLines(file.path(tmp, "1.msd"))[-c(4:5)] not equal to msd[-c(4:5, 16:19)].
  2/14 mismatches
  x[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFwC
  x[11]: ERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</mzArray>"
  y[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjYA
  y[11]: CBD/YMEOAAoTigtACUFnEAADZ/Alw=</mzArray>"
  
  x[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFw
  x[12]: DENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</intArray>"
  y[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjY
  y[12]: AABCQcwxSADpRWgtBKUVnEAAB9MAds=</intArray>"
  ── Failure ('test_exportMsd-methods.R:58:3'): exportMsd,list ───────────────────
  readLines(file.path(tmp, "2.msd"))[-c(4:5)] not equal to msd[-c(4:5, 16:19)].
  2/14 mismatches
  x[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFwC
  x[11]: ERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</mzArray>"
  y[11]: "  <mzArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjYA
  y[11]: CBD/YMEOAAoTigtACUFnEAADZ/Alw=</mzArray>"
  
  x[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJwFw
  x[12]: DENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</intArray>"
  y[12]: "  <intArray precision=\"64\" compression=\"zlib\" endian=\"little\">eJxjY
  y[12]: AABCQcwxSADpRWgtBKUVnEAAB9MAds=</intArray>"
  ── Failure ('test_exportMzMl-methods.R:70:3'): .exportMzMl ─────────────────────
  readLines(file.path(tmp, "m.mzML")) not equal to sub(pattern = "id=\"tmp\"", replacement = "id=\"m\"", x = mzML).
  4/58 mismatches
  x[42]: "     <binaryDataArray encodedLength=\"44\">"
  y[42]: "     <binaryDataArray encodedLength=\"36\">"
  
  x[46]: "      <binary>eJwFwCERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</binary>"
  y[46]: "      <binary>eJxjYACBD/YMEOAAoTigtACUFnEAADZ/Alw=</binary>"
  
  x[48]: "     <binaryDataArray encodedLength=\"48\">"
  y[48]: "     <binaryDataArray encodedLength=\"36\">"
  
  x[52]: "      <binary>eJwFwDENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</binary>"
  y[52]: "      <binary>eJxjYAABCQcwxSADpRWgtBKUVnEAAB9MAds=</binary>"
  ── Failure ('test_exportMzMl-methods.R:76:3'): exportMzMl,MassSpectrum ─────────
  readLines(file.path(tmp, "ms.mzML")) not equal to sub(pattern = "id=\"tmp\"", replacement = "id=\"ms\"", x = mzML).
  4/58 mismatches
  x[42]: "     <binaryDataArray encodedLength=\"44\">"
  y[42]: "     <binaryDataArray encodedLength=\"36\">"
  
  x[46]: "      <binary>eJwFwCERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</binary>"
  y[46]: "      <binary>eJxjYACBD/YMEOAAoTigtACUFnEAADZ/Alw=</binary>"
  
  x[48]: "     <binaryDataArray encodedLength=\"48\">"
  y[48]: "     <binaryDataArray encodedLength=\"36\">"
  
  x[52]: "      <binary>eJwFwDENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</binary>"
  y[52]: "      <binary>eJxjYAABCQcwxSADpRWgtBKUVnEAAB9MAds=</binary>"
  ── Failure ('test_exportMzMl-methods.R:83:3'): exportMzMl,list ─────────────────
  readLines(file.path(tmp, "TESTS_1.mzML")) not equal to sub(pattern = "id=\"tmp\"", replacement = "id=\"TESTS_1\"", x = mzML).
  4/58 mismatches
  x[42]: "     <binaryDataArray encodedLength=\"44\">"
  y[42]: "     <binaryDataArray encodedLength=\"36\">"
  
  x[46]: "      <binary>eJwFwCERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</binary>"
  y[46]: "      <binary>eJxjYACBD/YMEOAAoTigtACUFnEAADZ/Alw=</binary>"
  
  x[48]: "     <binaryDataArray encodedLength=\"48\">"
  y[48]: "     <binaryDataArray encodedLength=\"36\">"
  
  x[52]: "      <binary>eJwFwDENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</binary>"
  y[52]: "      <binary>eJxjYAABCQcwxSADpRWgtBKUVnEAAB9MAds=</binary>"
  ── Failure ('test_exportMzMl-methods.R:85:3'): exportMzMl,list ─────────────────
  readLines(file.path(tmp, "TESTS_2.mzML")) not equal to sub(pattern = "id=\"tmp\"", replacement = "id=\"TESTS_2\"", x = mzML).
  4/58 mismatches
  x[42]: "     <binaryDataArray encodedLength=\"44\">"
  y[42]: "     <binaryDataArray encodedLength=\"36\">"
  
  x[46]: "      <binary>eJwFwCERAAAIA8CXSAR9WP80ROCAW0CACtABJg82fwJc</binary>"
  y[46]: "      <binary>eJxjYACBD/YMEOAAoTigtACUFnEAADZ/Alw=</binary>"
  
  x[48]: "     <binaryDataArray encodedLength=\"48\">"
  y[48]: "     <binaryDataArray encodedLength=\"36\">"
  
  x[52]: "      <binary>eJwFwDENACAMAMGTwcBASIW8f1UNcAJuwAv4AdMCH0wB2w==</binary>"
  y[52]: "      <binary>eJxjYAABCQcwxSADpRWgtBKUVnEAAB9MAds=</binary>"
  
  [ FAIL 11 | WARN 0 | SKIP 1 | PASS 236 ]
  Error: Test failures
  Execution halted