* using log directory 'd:/Rcompile/CRANpkg/local/3.3/rcongresso.Rcheck' * using R version 3.3.3 (2017-03-06) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'rcongresso/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'rcongresso' version '0.3.2' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'rcongresso' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'rcongresso-Ex.R' failed The error most likely occurred in: > ### Name: fetch_votacoes > ### Title: Fetches all the votings which a proposition went through > ### Aliases: fetch_votacoes > > ### ** Examples > > votacoes_pec241 <- fetch_votacoes(2088351) Error in .congresso_api(.$path) : Not Found (HTTP 404). Calls: fetch_votacoes ... overscope_eval_next -> .congresso_api -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [18s] ERROR Running 'testthat.R' [18s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(rcongresso) > > test_check("rcongresso") -- 1. Failure: GET deputado inexistente (@test_deputados.R#3) ----------------- `fetch_deputado(22)` did not throw an error. -- 2. Error: (unknown) (@test_proposicoes.R#10) ------------------------------- Column `id` must be a 1d atomic vector or a list 1: fetch_status_proposicao(pec_241_id) at testthat/test_proposicoes.R:10 2: tibble::tibble(id = id_prop) %>% dplyr::mutate(path = paste0(.PROPOSICOES_PATH, "/", id)) %>% dplyr::group_by(id) %>% dplyr::do(.congresso_api(.$path)$dados$statusProposicao %>% .remove_lists_and_nulls()) %>% dplyr::ungroup() 3: eval(lhs, parent, parent) 4: eval(expr, envir, enclos) 5: tibble::tibble(id = id_prop) 6: as_tibble(lst_quos(xs, expand = TRUE)) 7: as_tibble.list(lst_quos(xs, expand = TRUE)) 8: list_to_tibble(x, validate) 9: check_tibble(x) 10: invalid_df("must be [a] 1d atomic vector(s) or [a] list(s)", x, !is_1d) 11: stopc(pluralise_msg("Column(s) ", vars), " ", pluralise(problem, vars)) 12: abort(paste0(...)) -- 3. Error: (unknown) (@test_votacoes.R#9) ----------------------------------- Not Found (HTTP 404). 1: fetch_votacoes(2088351) %>% ultima_votacao() at testthat/test_votacoes.R:9 2: eval(lhs, parent, parent) 3: eval(expr, envir, enclos) 4: fetch_votacoes(2088351) 5: tibble::tibble(id = id_prop) %>% dplyr::mutate(path = paste0(.PROPOSICOES_PATH, "/", id, "/votacoes")) %>% dplyr::rowwise() %>% dplyr::do(.congresso_api(.$path)[[1]]) %>% dplyr::ungroup() 6: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env)) 7: eval(quote(`_fseq`(`_lhs`)), env, env) 8: eval(expr, envir, enclos) 9: `_fseq`(`_lhs`) 10: freduce(value, `_function_list`) 11: function_list[[i]](value) 12: dplyr::do(., .congresso_api(.$path)[[1]]) 13: do.rowwise_df(., .congresso_api(.$path)[[1]]) 14: overscope_eval_next(overscope, args[[j]]) 15: .congresso_api(.$path) 16: httr::stop_for_status(resp) == testthat results =========================================================== OK: 19 SKIPPED: 0 FAILED: 3 1. Failure: GET deputado inexistente (@test_deputados.R#3) 2. Error: (unknown) (@test_proposicoes.R#10) 3. Error: (unknown) (@test_votacoes.R#9) Error: testthat unit tests failed Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [6s] WARNING Error in re-building vignettes: ... * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING