Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(exifr)
  Using ExifTool version 
  > 
  > test_check("exifr")
  1. Error: read_exif reads images in the inst directory (@test_read_exif.R#8) ---
  parse error: premature EOF
                                         
                       (right here) ------^
  1: read_exif(test_files, quiet = FALSE) at testthat/test_read_exif.R:8
  2: purrr::map_df(commands, read_exif_base, quiet = quiet)
  3: map(.x, .f, ...)
  4: .f(.x[[i]], ...)
  5: tibble::as_tibble(jsonlite::fromJSON(return_value_collapsed))
  6: jsonlite::fromJSON(return_value_collapsed)
  7: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  8: parseJSON(txt, bigint_as_char)
  9: parse_string(txt, bigint_as_char)
  
  2. Error: read_exif reads a single file as a data frame (@test_read_exif.R#16) -
  parse error: premature EOF
                                         
                       (right here) ------^
  1: read_exif(test_files[1], quiet = FALSE) at testthat/test_read_exif.R:16
  2: purrr::map_df(commands, read_exif_base, quiet = quiet)
  3: map(.x, .f, ...)
  4: .f(.x[[i]], ...)
  5: tibble::as_tibble(jsonlite::fromJSON(return_value_collapsed))
  6: jsonlite::fromJSON(return_value_collapsed)
  7: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  8: parseJSON(txt, bigint_as_char)
  9: parse_string(txt, bigint_as_char)
  
  3. Error: quiet argument supresses messages (@test_read_exif.R#24) -------------
  parse error: premature EOF
                                         
                       (right here) ------^
  1: expect_silent(read_exif(test_files)) at testthat/test_read_exif.R:24
  2: evaluate_promise(object)
  3: with_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  5: withVisible(code)
  6: read_exif(test_files)
  7: purrr::map_df(commands, read_exif_base, quiet = quiet)
  8: map(.x, .f, ...)
  9: .f(.x[[i]], ...)
  10: tibble::as_tibble(jsonlite::fromJSON(return_value_collapsed))
  11: jsonlite::fromJSON(return_value_collapsed)
  12: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  13: parseJSON(txt, bigint_as_char)
  14: parse_string(txt, bigint_as_char)
  
  4. Error: recursive option works (@test_read_exif.R#32) ------------------------
  parse error: premature EOF
                                         
                       (right here) ------^
  1: expect_silent(read_exif(images_folder, recursive = TRUE)) at testthat/test_read_exif.R:32
  2: evaluate_promise(object)
  3: with_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  5: withVisible(code)
  6: read_exif(images_folder, recursive = TRUE)
  7: purrr::map_df(commands, read_exif_base, quiet = quiet)
  8: map(.x, .f, ...)
  9: .f(.x[[i]], ...)
  10: tibble::as_tibble(jsonlite::fromJSON(return_value_collapsed))
  11: jsonlite::fromJSON(return_value_collapsed)
  12: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  13: parseJSON(txt, bigint_as_char)
  14: parse_string(txt, bigint_as_char)
  
  5. Error: tags option works (@test_read_exif.R#48) -----------------------------
  parse error: premature EOF
                                         
                       (right here) ------^
  1: read_exif(test_files, tags = c("FileName", "ImageSize")) at testthat/test_read_exif.R:48
  2: purrr::map_df(commands, read_exif_base, quiet = quiet)
  3: map(.x, .f, ...)
  4: .f(.x[[i]], ...)
  5: tibble::as_tibble(jsonlite::fromJSON(return_value_collapsed))
  6: jsonlite::fromJSON(return_value_collapsed)
  7: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  8: parseJSON(txt, bigint_as_char)
  9: parse_string(txt, bigint_as_char)
  
  6. Error: command-line length is properly dealt with (@test_read_exif.R#58) ----
  parse error: premature EOF
                                         
                       (right here) ------^
  1: read_exif(files, tags = c("FileName", "ImageSize"), args = "-fast", quiet = FALSE) at testthat/test_read_exif.R:58
  2: purrr::map_df(commands, read_exif_base, quiet = quiet)
  3: map(.x, .f, ...)
  4: .f(.x[[i]], ...)
  5: tibble::as_tibble(jsonlite::fromJSON(return_value_collapsed))
  6: jsonlite::fromJSON(return_value_collapsed)
  7: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  8: parseJSON(txt, bigint_as_char)
  9: parse_string(txt, bigint_as_char)
  
  7. Error: binary tags are loaded as base64 (@test_read_exif.R#75) --------------
  parse error: premature EOF
                                         
                       (right here) ------^
  1: read_exif(btag_file, tags = c("DataDump", "RecognizedFace1Name", "RecognizedFace1Age", 
         "RecognizedFace2Name", "RecognizedFace2Age", "RecognizedFace3Name", "RecognizedFace3Age", 
         "Title", "BabyName", "Location", "ThumbnailImage")) at testthat/test_read_exif.R:75
  2: purrr::map_df(commands, read_exif_base, quiet = quiet)
  3: map(.x, .f, ...)
  4: .f(.x[[i]], ...)
  5: tibble::as_tibble(jsonlite::fromJSON(return_value_collapsed))
  6: jsonlite::fromJSON(return_value_collapsed)
  7: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  8: parseJSON(txt, bigint_as_char)
  9: parse_string(txt, bigint_as_char)
  
  8. Failure: exiftool call function works (@test_read_exif.R#92) ----------------
  ...[] does not match "\"ExifToolVersion\": [0-9.]+".
  Actual value: "<NA>"
  
  
  9. Error: exifr() output matches previous output (@test_read_exif_old.R#65) ----
  parse error: premature EOF
                                         
                       (right here) ------^
  1: exifr(system.file("images/Canon.jpg", package = "exifr")) at testthat/test_read_exif_old.R:65
  2: read_exif(path = filename, recursive = recursive, args = exiftoolargs, quiet = quiet)
  3: purrr::map_df(commands, read_exif_base, quiet = quiet)
  4: map(.x, .f, ...)
  5: .f(.x[[i]], ...)
  6: tibble::as_tibble(jsonlite::fromJSON(return_value_collapsed))
  7: jsonlite::fromJSON(return_value_collapsed)
  8: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  9: parseJSON(txt, bigint_as_char)
  10: parse_string(txt, bigint_as_char)
  
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
    0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
    0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
    0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
  100 2838k  100 2838k    0     0   653k      0  0:00:04  0:00:04 --:--:--  654k
  testthat results ================================================================
  OK: 14 SKIPPED: 0 FAILED: 9
  1. Error: read_exif reads images in the inst directory (@test_read_exif.R#8) 
  2. Error: read_exif reads a single file as a data frame (@test_read_exif.R#16) 
  3. Error: quiet argument supresses messages (@test_read_exif.R#24) 
  4. Error: recursive option works (@test_read_exif.R#32) 
  5. Error: tags option works (@test_read_exif.R#48) 
  6. Error: command-line length is properly dealt with (@test_read_exif.R#58) 
  7. Error: binary tags are loaded as base64 (@test_read_exif.R#75) 
  8. Failure: exiftool call function works (@test_read_exif.R#92) 
  9. Error: exifr() output matches previous output (@test_read_exif_old.R#65) 
  
  Error: testthat unit tests failed
  Execution halted