Running ‘testthat.R’ [24s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(LexisNexisTools)
  LexisNexisTools Version 0.2.0
  > 
  > test_check("LexisNexisTools")
  Creating LNToutput from input 1 files...
  
  	...processing date 2010-01-08: 0 duplicates found [0.20 secs]. 		
  	...processing date 2010-01-09: 0 duplicates found [0.20 secs]. 		
  	...processing date 2010-01-10: 0 duplicates found [0.28 secs]. 		
  	...processing date 2010-01-11: 15 duplicates found [5.25 secs]. 		
  Threshold = 0.95; 4 days processed; 5 duplicates found; in 5.25 secs── 1. Error: Show method (@test-lnt_diff.R#10)  ────────────────────────────────
  Package "diffobj" is needed for this function to work. Please install it.
  1: expect_known_output(object = lnt_diff(duplicates.df, min = 0.18, max = 0.3, output_html = TRUE), 
         file = "../files/diff") at testthat/test-lnt_diff.R:10
  2: append(act, eval_with_output(object, print = print, width = width))
  3: eval_with_output(object, print = print, width = width)
  4: withr::with_output_sink(temp, withVisible(code))
  5: force(code)
  6: withVisible(code)
  7: lnt_diff(duplicates.df, min = 0.18, max = 0.3, output_html = TRUE)
  8: stop("Package \"diffobj\" is needed for this function to work. Please install it.", 
         call. = FALSE)
  
  ── 2. Error: lnt_diff warnings and errors (@test-lnt_diff.R#24)  ───────────────
  Package "diffobj" is needed for this function to work. Please install it.
  1: expect_warning({
         class(duplicates.df) <- "data.frame"
         lnt_diff(x = duplicates.df, min = 0.18, max = 0.3, output_html = TRUE)
     }, "'x' should be an object returned by lnt_similarity().") at testthat/test-lnt_diff.R:24
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: lnt_diff(x = duplicates.df, min = 0.18, max = 0.3, output_html = TRUE) at testthat/test-lnt_diff.R:26
  7: stop("Package \"diffobj\" is needed for this function to work. Please install it.", 
         call. = FALSE)
  
  Creating LNToutput from input 1 files...
  
     |                                                  | 0 % ~calculating  
     |+++++                                             | 10% ~00s          
     |++++++++++                                        | 20% ~00s          
     |+++++++++++++++                                   | 30% ~00s          
     |++++++++++++++++++++                              | 40% ~00s          
     |+++++++++++++++++++++++++                         | 50% ~00s          
     |++++++++++++++++++++++++++++++                    | 60% ~00s          
     |+++++++++++++++++++++++++++++++++++               | 70% ~00s          
     |++++++++++++++++++++++++++++++++++++++++         | 80% ~00s          
     |+++++++++++++++++++++++++++++++++++++++++++++    | 90% ~00s          
     |++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed = 00s
  Creating LNToutput from input 1 files...
  	...files loaded [0.0014 secs]
  	...articles split [0.019 secs]
  	...lengths extracted [0.02 secs]
  	...newspapers extracted [0.021 secs]
  	...dates extracted [0.023 secs]
  	...authors extracted [0.025 secs]
  	...sections extracted [0.025 secs]
  	...editions extracted [0.026 secs]
  	...headlines extracted [0.027 secs]
  	...dates converted [0.034 secs]
  	...metadata extracted [0.036 secs]
  	...article texts extracted [0.04 secs]
  	...paragraphs extracted [0.048 secs]
  	...superfluous whitespace removed from articles [0.053 secs]
  	...superfluous whitespace removed from paragraphs [0.057 secs]
  Elapsed time: 0.057 secs
  Creating LNToutput from input 2 files...
  	...files loaded [0.0024 secs]
  	...articles split [0.032 secs]
  	...lengths extracted [0.033 secs]
  	...newspapers extracted [0.034 secs]
  	...dates extracted [0.039 secs]
  	...authors extracted [0.042 secs]
  	...sections extracted [0.042 secs]
  	...editions extracted [0.043 secs]
  	...headlines extracted [0.045 secs]
  	...dates converted [0.052 secs]
  	...metadata extracted [0.055 secs]
  	...article texts extracted [0.065 secs]
  	...paragraphs extracted [0.08 secs]
  	...superfluous whitespace removed from articles [0.089 secs]
  	...superfluous whitespace removed from paragraphs [0.11 secs]
  Elapsed time: 0.11 secs
  Creating LNToutput from input 2 files...
  	...files loaded [0.0025 secs]
  	...articles split [0.046 secs]
  	...lengths extracted [0.059 secs]
  	...newspapers extracted [0.06 secs]
  	...dates extracted [0.065 secs]
  	...authors extracted [0.068 secs]
  	...sections extracted [0.068 secs]
  	...editions extracted [0.069 secs]
  	...headlines extracted [0.071 secs]
  	...dates converted [0.077 secs]
  	...metadata extracted [0.08 secs]
  	...article texts extracted [0.088 secs]
  	...superfluous whitespace removed from articles [0.096 secs]
  	...superfluous whitespace removed from paragraphs [0.097 secs]
  Elapsed time: 0.097 secs
  in 0.026 secs [changes were only simulated]in 0.0019 secs1 not renamed (file already exists), in 0.0015 secs [changes were only simulated]Creating LNToutput from input 1 files...
  Checking similiarity for 10 articles over 4 dates...
  	...quanteda dfm construced for similarity comparison [0.058 secs].
  	...processing date 2010-01-08: 0 duplicates found [0.059 secs]. 		
  	...processing date 2010-01-09: 0 duplicates found [0.059 secs]. 		
  	...processing date 2010-01-10: 0 duplicates found [0.07 secs]. 		
  	...processing date 2010-01-11: 9 duplicates found [3.96 secs]. 		
  Threshold = 0.99; 4 days processed; 4 duplicates found; in 3.96 secsChecking similiarity for 10 articles over 4 dates...
  	...quanteda dfm construced for similarity comparison [0.12 secs].
  	...processing date 2010-01-08: 0 duplicates found [0.12 secs]. 		
  	...processing date 2010-01-09: 0 duplicates found [0.12 secs]. 		
  	...processing date 2010-01-10: 0 duplicates found [0.15 secs]. 		
  	...processing date 2010-01-11: 9 duplicates found [4.67 secs]. 		
  Threshold = 0.99; 4 days processed; 4 duplicates found; in 4.67 secsChecking similiarity for 10 articles over 4 dates...
  	...quanteda dfm construced for similarity comparison [0.081 secs].
  	...processing date 2010-01-08: 0 duplicates found [0.082 secs]. 		
  	...processing date 2010-01-09: 0 duplicates found [0.082 secs]. 		
  	...processing date 2010-01-10: 0 duplicates found [0.095 secs]. 		
  	...processing date 2010-01-11: 9 duplicates found [4.01 secs]. 		
  Threshold = 0.99; 4 days processed; 4 duplicates found; in 4.01 secsChecking similiarity for 9 articles over 4 dates...
  	...quanteda dfm construced for similarity comparison [0.053 secs].
  	...processing date 2010-01-08: 0 duplicates found [0.054 secs]. 		
  	...processing date 2010-01-09: 0 duplicates found [0.054 secs]. 		
  	...processing date 2010-01-10: 0 duplicates found [0.066 secs]. 		
  	...processing date 2010-01-11: 8 duplicates found [3.83 secs]. 		
  Threshold = 0.99; 4 days processed; 4 duplicates found; in 3.83 secsChecking similiarity for 10 articles over 3 dates...
  	...quanteda dfm construced for similarity comparison [0.065 secs].
  	...processing date 2010-01-08: 0 duplicates found [0.066 secs]. 		
  	...processing date 2010-01-10: 0 duplicates found [0.079 secs]. 		
  	...processing date 2010-01-11: 9 duplicates found [3.92 secs]. 		
  Threshold = 0.99; 3 days processed; 4 duplicates found; in 3.92 secsCreating LNToutput from input 1 files...
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 44 SKIPPED: 0 FAILED: 2
  1. Error: Show method (@test-lnt_diff.R#10) 
  2. Error: lnt_diff warnings and errors (@test-lnt_diff.R#24) 
  
  Error: testthat unit tests failed
  Execution halted