* using log directory 'd:/Rcompile/CRANpkg/local/3.4/rcongresso.Rcheck' * using R version 3.4.4 (2018-03-15) * 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.4.6' * 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 ... [2s] 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_despesas_deputado > ### Title: Fetches expenditures from deputy > ### Aliases: fetch_despesas_deputado > > ### ** Examples > > gastos_abel_mesquita <- fetch_despesas_deputado(id = 178957) Error: Falha na requisicao a API dos Dados Abertos. Erro 400 ao tentar acessar: https://dadosabertos.camara.leg.br/api/v2/deputados/178957/despesas?id=178957 Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [9s] ERROR Running 'testthat.R' [9s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(rcongresso) > > test_check("rcongresso") -- 1. Error: (unknown) (@test_deputados.R#81) --------------------------------- argument "message" is missing, with no default 1: skip() at testthat/test_deputados.R:81 2: paste0(message, collapse = "\n") -- 2. Error: (unknown) (@test_proposicoes.R#91) ------------------------------- could not find function "FUN1" 1: check_api() at testthat/test_proposicoes.R:91 2: tryCatch(setup(), error = function(e) { message(e) return(FALSE) }) at testthat/test_proposicoes.R:15 3: tryCatchList(expr, classes, parentenv, handlers) 4: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5: value[[3L]](cond) 6: message(e) at testthat/test_proposicoes.R:16 7: withRestarts({ signalCondition(cond) defaultHandler(cond) }, muffleMessage = function() NULL) 8: withOneRestart(expr, restarts[[1L]]) 9: doWithOneRestart(return(expr), restart) -- 3. Error: (unknown) (@test_votacoes.R#70) ---------------------------------- argument "message" is missing, with no default 1: skip() at testthat/test_votacoes.R:70 2: paste0(message, collapse = "\n") == testthat results =========================================================== OK: 13 SKIPPED: 0 WARNINGS: 0 FAILED: 3 1. Error: (unknown) (@test_deputados.R#81) 2. Error: (unknown) (@test_proposicoes.R#91) 3. Error: (unknown) (@test_votacoes.R#70) 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: ... Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Quitting from lines 36-38 (introducao-rcongresso.Rmd) Error: processing vignette 'introducao-rcongresso.Rmd' failed with diagnostics: could not find function "FUN1" Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING