Running ‘testthat.R’ [15s/39s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(jstor)
  > 
  > test_check("jstor")
  Processing files for book_chapter with functions jst_get_book
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 2 batches.
  Re-importing 1 batches.
  Re-importing 2 batches.
  Re-importing 1 batches.
  Re-importing 2 batches.
  
  Attaching package: 'magrittr'
  
  The following object is masked from 'package:purrr':
  
      set_names
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  Starting to import 2 file(s).
  Finished importing 2 file(s) in 0.45 secs.
  Starting to import 2 file(s).
  Finished importing 2 file(s) in 0.43 secs.
  Starting to import 2 file(s).
  Finished importing 2 file(s) in 0.38 secs.
  Starting to import 3 file(s).
  Processing chunk 1/2
  Processing chunk 2/2
  Finished importing 3 file(s) in 0.63 secs.
  Processing files for book_chapter with functions jst_get_book
  Processing files for journal_article with functions jst_get_article, jst_get_authors
  Processing files for ngram1 with functions jst_get_ngram
  [ FAIL 2 | WARN 0 | SKIP 6 | PASS 247 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • Downloading was disabled (1): 'test-journal-overview.R:17:3'
  • On CRAN (2): 'test-footnotes.R:27:3', 'test-full_text.R:26:3'
  • This test is stupid, should be improved. It depends on the console width (1):
    'test-import-spec.R:60:3'
  • empty test (2): 'test-re-import.R:297:1', 'test-re-import.R:303:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-references.R:168:3'): extracting references works ────────────
  jst_get_references(parsed)[["ref_unparsed"]] (`actual`) not identical to `parsed_refs` (`expected`).
  
  lines(actual[[5]]) vs lines(expected[[5]])
  - "Costall, Alan ( 1980 ). “Some article title” "
  - "                Theory and Psychology "
  - "                1 : 123 – 145 ."
  + "Costall, Alan ( 1980 ). “Some article title” Theory and Psychology 1 : 123 – 145 ."
  
  lines(actual[[7]]) vs lines(expected[[7]])
  - "Fries-Britt S. , & Griffin K.A. "
  - "                ( 2000 ). Some article about race . Journal of College Student Fun , 20 , 60 – 120 ."
  + "Fries-Britt S. , & Griffin K.A. ( 2000 ). Some article about race . Journal of College Student Fun , 20 , 60 – 120 ."
  ── Failure ('test-references.R:184:3'): parsing references works ───────────────
  `correct_parsed` (`actual`) not identical to jst_get_references(parsed, parse_refs = T) (`expected`).
  
  actual vs expected
                                                                                                                                                                                              ref_unparsed
    actual[2, ]   Acohido, B. and Eisler, P. ( 2013 ) “Snowden Case: How Low-Level Insider Could Steal from NSA” , USA Today , 12 June. Available online at http://www.google.com (accessed 15 June 2013).
    actual[3, ]   Amnesty International ( 2013 ) “USA: Revelations about Government Surveillance ‘raise red flags’” , 7 June. Available online at http://www.google.com (accessed 14 June 2013).          
    actual[4, ]   Jacobson, D. , 2009 . Chapter title . In: D. E. Davis & J. Go , eds. Book title .: Routledge , pp. 281 - 286 .                                                                          
  - actual[5, ]   Costall, Alan ( 1980 ). “Some article title” Theory and Psychology 1 : 123 – 145 .                                                                                                      
  + expected[5, ] Costall, Alan ( 1980 ). “Some article title” 
                  Theory and Psychology 
                  1 : 123 – 145 .                                                                  
    actual[6, ]   Hudson, W. , 2000 . Another article title . Australian Journal of Cats & Dogs , September , 40 ( 3 ), p. 134 – 150 .                                                                    
  - actual[7, ]   Fries-Britt S. , & Griffin K.A. ( 2000 ). Some article about race . Journal of College Student Fun , 20 , 60 – 120 .                                                                    
  + expected[7, ] Fries-Britt S. , & Griffin K.A. 
                  ( 2000 ). Some article about race . Journal of College Student Fun , 20 , 60 – 120 .                                                  
  
  lines(actual$ref_unparsed[[5]]) vs lines(expected$ref_unparsed[[5]])
  - "Costall, Alan ( 1980 ). “Some article title” Theory and Psychology 1 : 123 – 145 ."
  + "Costall, Alan ( 1980 ). “Some article title” "
  + "                Theory and Psychology "
  + "                1 : 123 – 145 ."
  
  lines(actual$ref_unparsed[[7]]) vs lines(expected$ref_unparsed[[7]])
  - "Fries-Britt S. , & Griffin K.A. ( 2000 ). Some article about race . Journal of College Student Fun , 20 , 60 – 120 ."
  + "Fries-Britt S. , & Griffin K.A. "
  + "                ( 2000 ). Some article about race . Journal of College Student Fun , 20 , 60 – 120 ."
  
  [ FAIL 2 | WARN 0 | SKIP 6 | PASS 247 ]
  Error: Test failures
  Execution halted