Last updated on 2025-08-21 01:49:07 CEST.
Package | ERROR | OK |
---|---|---|
jstor | 2 | 11 |
Current CRAN status: ERROR: 2, OK: 11
Version: 0.3.11
Check: tests
Result: ERROR
Running ‘testthat.R’ [14s/35s]
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.32 secs.
Starting to import 2 file(s).
Finished importing 2 file(s) in 0.28 secs.
Starting to import 2 file(s).
Finished importing 2 file(s) in 0.32 secs.
Starting to import 3 file(s).
Processing chunk 1/2
Processing chunk 2/2
Finished importing 3 file(s) in 0.53 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
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.3.11
Check: tests
Result: ERROR
Running ‘testthat.R’ [18s/31s]
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.67 secs.
Starting to import 2 file(s).
Finished importing 2 file(s) in 0.53 secs.
Starting to import 2 file(s).
Finished importing 2 file(s) in 0.65 secs.
Starting to import 3 file(s).
Processing chunk 1/2
Processing chunk 2/2
Finished importing 3 file(s) in 0.87 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
Flavor: r-patched-linux-x86_64