Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidyRSS)
  > 
  > test_check("tidyRSS")
  1. Error: tidyfeed returns a data_frame (@test.feeds.R#11) ---------------------
  lexical error: invalid char in json text.
                                         <?xml version="1.0" encoding="U
                       (right here) ------^
  1: expect_is(tidyfeed(rss), "tbl_df") at testthat/test.feeds.R:11
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: tidyfeed(rss)
  5: suppressWarnings({
         stopifnot(identical(length(feed), 1L))
         msg <- "Error in feed parse; please check URL.\nIf you're certain that this is a valid rss feed, please file an issue at https://github.com/RobertMyles/tidyRSS/issues. Please note that the feed may also be undergoing maintenance."
         doc <- try(httr::GET(feed), silent = TRUE)
         if (grepl("json", doc$headers$`content-type`)) {
             result <- json_parse(feed)
             return(result)
         }
         else {
             doc <- doc %>% xml2::read_xml()
         }
         if (unique(grepl("try-error", class(doc)))) {
             stop(msg)
         }
         if (grepl("http://www.w3.org/2005/Atom", xml2::xml_attr(doc, "xmlns"))) {
             result <- atom_parse(doc)
             return(result)
         }
         else {
             result <- rss_parse(doc)
             return(result)
         }
     })
  6: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  7: json_parse(feed)
  8: jsonlite::fromJSON(feed)
  9: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  10: parseJSON(txt, bigint_as_char)
  11: parse_con(txt, bigint_as_char)
  
  testthat results ================================================================
  OK: 1 SKIPPED: 0 FAILED: 1
  1. Error: tidyfeed returns a data_frame (@test.feeds.R#11) 
  
  Error: testthat unit tests failed
  Execution halted