Running ‘testthat.R’ [1s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(longurl)
  > 
  > test_check("longurl")
  
   *** caught segfault ***
  address 0x5, cause 'memory not mapped'
  
  Traceback:
   1: curl::curl_fetch_memory(url, handle = handle)
   2: request_fetch.write_memory(req$output, req$url, handle)
   3: request_fetch(req$output, req$url, handle)
   4: request_perform(req, hu$handle$handle)
   5: .f(...)
   6: doTryCatch(return(expr), name, parentenv, handler)
   7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  11: tryCatchList(expr, classes, parentenv, handlers)
  12: tryCatch(list(result = code, error = NULL), error = function(e) {    if (!quiet)         message("Error: ", e$message)    list(result = otherwise, error = e)}, interrupt = function(e) {    stop("Terminated by user", call. = FALSE)})
  13: capture_error(.f(...), otherwise, quiet)
  14: s_HEAD(x, httr::user_agent(agent), httr::timeout(seconds))
  15: .f(.x[[i]], ...)
  16: map(.x, .f, ...)
  17: map_df(urls_to_expand, function(x) {    if (.progress)         pb$tick()$print()    res <- s_HEAD(x, httr::user_agent(agent), httr::timeout(seconds))    if (is.null(res$result)) {        warning(sprintf("Invalid URL: [%s]", x))        data_frame(orig_url = x, expanded_url = NA, status_code = NA)    }    else {        httr::warn_for_status(res$result)        data_frame(orig_url = x, expanded_url = res$result$url,             status_code = res$result$status_code)    }})
  18: expand_urls(test_urls)
  19: eval_bare(get_expr(quo), get_env(quo))
  20: quasi_label(enquo(object), label, arg = "object")
  21: expect_is(x, class)
  22: condition(object)
  23: expect_that(expand_urls(test_urls), is_a("data.frame"))
  24: eval(code, test_env)
  25: eval(code, test_env)
  26: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  27: doTryCatch(return(expr), name, parentenv, handler)
  28: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  29: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  30: doTryCatch(return(expr), name, parentenv, handler)
  31: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  32: tryCatchList(expr, classes, parentenv, handlers)
  33: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  34: test_code(desc, code, env = parent.frame())
  35: test_that("the API works", {    test_urls <- c("http://t.co/D4C7aWYIiA", "1.usa.gov/1J6GNoW",         "ift.tt/1L2Llfr", "bit.ly/1GPr5w5", "http://l.dds.ec/1da152x",         "http://l.rud.is/seven")    expect_that(expand_urls(test_urls), is_a("data.frame"))})
  36: eval(code, test_env)
  37: eval(code, test_env)
  38: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  39: doTryCatch(return(expr), name, parentenv, handler)
  40: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  41: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  42: doTryCatch(return(expr), name, parentenv, handler)
  43: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  44: tryCatchList(expr, classes, parentenv, handlers)
  45: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  46: test_code(NULL, exprs, env)
  47: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  48: force(code)
  49: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        reporter$start_file(basename(path))        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        reporter$.end_context()        reporter$end_file()    })
  50: FUN(X[[i]], ...)
  51: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  52: force(code)
  53: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  54: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  55: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  56: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  57: test_check("longurl")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault