'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rAltmetric)
  > 
  > test_check("rAltmetric")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 2 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (tests.R:4:3): str_length is number of characters ─────────────────────
  Error: lexical error: invalid char in json text.
                                         The API key you supplied was no
                       (right here) ------^
  
  Backtrace:
      ▆
   1. └─rAltmetric::altmetrics(doi = "10.1038/480426a") at tests.R:4:2
   2.   └─jsonlite::fromJSON(httr::content(request, as = "text"), flatten = TRUE)
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 2 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘intro-to-altmetric.Rmd’ using rmarkdown
Quitting from lines 24-40 (intro-to-altmetric.Rmd) 
Error: processing vignette ‘intro-to-altmetric.Rmd’ failed with diagnostics:
lexical error: invalid char in json text.
                                       The API key you supplied was no
                     (right here) ------^

--- failed re-building ‘intro-to-altmetric.Rmd’

SUMMARY: processing the following file failed:
  ‘intro-to-altmetric.Rmd’

Error: Vignette re-building failed.
Execution halted
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rAltmetric)
  > 
  > test_check("rAltmetric")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 2 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (tests.R:4:3): str_length is number of characters ─────────────────────
  Error: lexical error: invalid char in json text.
                                         The API key you supplied was no
                       (right here) ------^
  
  Backtrace:
      ▆
   1. └─rAltmetric::altmetrics(doi = "10.1038/480426a") at tests.R:4:2
   2.   └─jsonlite::fromJSON(httr::content(request, as = "text"), flatten = TRUE)
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 2 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘intro-to-altmetric.Rmd’ using rmarkdown
Quitting from lines 24-40 (intro-to-altmetric.Rmd) 
Error: processing vignette ‘intro-to-altmetric.Rmd’ failed with diagnostics:
lexical error: invalid char in json text.
                                       The API key you supplied was no
                     (right here) ------^

--- failed re-building ‘intro-to-altmetric.Rmd’

SUMMARY: processing the following file failed:
  ‘intro-to-altmetric.Rmd’

Error: Vignette re-building failed.
Execution halted
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rAltmetric)
  > 
  > test_check("rAltmetric")
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 2 ]
  
  == Failed tests ================================================================
  -- Error (tests.R:4:3): str_length is number of characters ---------------------
  Error: lexical error: invalid char in json text.
                                         The API key you supplied was no
                       (right here) ------^
  
  Backtrace:
      x
   1. \-rAltmetric::altmetrics(doi = "10.1038/480426a") at tests.R:4:2
   2.   \-jsonlite::fromJSON(httr::content(request, as = "text"), flatten = TRUE)
   3.     \-jsonlite:::parse_and_simplify(...)
   4.       \-jsonlite:::parseJSON(txt, bigint_as_char)
   5.         \-jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 2 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
--- re-building 'intro-to-altmetric.Rmd' using rmarkdown
Quitting from lines 24-40 (intro-to-altmetric.Rmd) 
Error: processing vignette 'intro-to-altmetric.Rmd' failed with diagnostics:
lexical error: invalid char in json text.
                                       The API key you supplied was no
                     (right here) ------^

--- failed re-building 'intro-to-altmetric.Rmd'

SUMMARY: processing the following file failed:
  'intro-to-altmetric.Rmd'

Error: Vignette re-building failed.
Execution halted