CRAN Package Check Results for Package rcongresso

Last updated on 2019-01-15 00:46:41 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.4.6 1.66 19.87 21.53 OK --no-examples --no-tests --no-vignettes
r-devel-linux-x86_64-debian-gcc 0.4.6 1.26 16.07 17.33 OK --no-examples --no-tests --no-vignettes
r-devel-linux-x86_64-fedora-clang 0.4.6 45.71 ERROR
r-devel-linux-x86_64-fedora-gcc 0.4.6 40.09 OK
r-devel-windows-ix86+x86_64 0.4.6 4.00 623.00 627.00 ERROR
r-patched-linux-x86_64 0.4.6 1.61 18.23 19.84 OK --no-examples --no-tests --no-vignettes
r-patched-solaris-x86 0.4.6 51.10 WARN
r-release-linux-x86_64 0.4.6 1.30 18.09 19.39 OK --no-examples --no-tests --no-vignettes
r-release-windows-ix86+x86_64 0.4.6 9.00 366.00 375.00 ERROR
r-release-osx-x86_64 0.4.6 WARN
r-oldrel-windows-ix86+x86_64 0.4.6 4.00 464.00 468.00 ERROR
r-oldrel-osx-x86_64 0.4.6 WARN

Check Details

Version: 0.4.6
Check: tests
Result: ERROR
     Running ‘testthat.R’ [4s/172s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(rcongresso)
     >
     > test_check("rcongresso")
     ── 1. Error: Quantidade de itens por requisição (@test_proposicoes.R#82) ──────
     API did not return json
     1: expect_equal(dim(fetch_proposicao(dataInicio = "2007-01-01", dataFim = "2017-01-01",
     itens = 100)), TAM_DF_100REQ) at testthat/test_proposicoes.R:82
     2: quasi_label(enquo(object), label)
     3: eval_bare(get_expr(quo), get_env(quo))
     4: fetch_proposicao(dataInicio = "2007-01-01", dataFim = "2017-01-01", itens = 100)
     5: .fetch_using_queries(parametros, .PROPOSICOES_PATH) %>% .assert_dataframe_completo(.COLNAMES_PROPOSICAO) %>%
     .coerce_types(.COLNAMES_PROPOSICAO)
     6: eval(lhs, parent, parent)
     7: eval(lhs, parent, parent)
     8: .fetch_using_queries(parametros, .PROPOSICOES_PATH)
     9: .fetch_itens(.verifica_parametros_entrada(parametros), API_path)
     10: query %>% tibble::as.tibble() %>% dplyr::rowwise() %>% dplyr::do(.congresso_api(API_path,
     .))
     ...
     14: `_fseq`(`_lhs`)
     15: freduce(value, `_function_list`)
     16: withVisible(function_list[[k]](value))
     17: function_list[[k]](value)
     18: dplyr::do(., .congresso_api(API_path, .))
     19: do.rowwise_df(., .congresso_api(API_path, .))
     20: eval_tidy(args[[j]], mask)
     21: .congresso_api(API_path, .)
     22: .get_from_api(path, query)
     23: stop(.ERRO_RETORNO_JSON, call. = FALSE)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 72 SKIPPED: 0 FAILED: 1
     1. Error: Quantidade de itens por requisição (@test_proposicoes.R#82)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.4.6
Check: tests
Result: ERROR
     Running 'testthat.R' [423s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(rcongresso)
     >
     > test_check("rcongresso")
     -- 1. Error: Quantidade de itens por requisição (@test_proposicoes.R#81) ------
     Falha na requisicao a API dos Dados Abertos. Erro 504 ao tentar acessar: https://dadosabertos.camara.leg.br/api/v2/proposicoes?dataInicio=2007-01-01&dataFim=2017-01-01&itens=10&pagina=1
     1: expect_equal(dim(fetch_proposicao(dataInicio = "2007-01-01", dataFim = "2017-01-01",
     itens = 10)), TAM_DF_10REQ) at testthat/test_proposicoes.R:81
     2: quasi_label(enquo(object), label)
     3: eval_bare(get_expr(quo), get_env(quo))
     4: fetch_proposicao(dataInicio = "2007-01-01", dataFim = "2017-01-01", itens = 10)
     5: .fetch_using_queries(parametros, .PROPOSICOES_PATH) %>% .assert_dataframe_completo(.COLNAMES_PROPOSICAO) %>%
     .coerce_types(.COLNAMES_PROPOSICAO)
     6: eval(lhs, parent, parent)
     7: eval(lhs, parent, parent)
     8: .fetch_using_queries(parametros, .PROPOSICOES_PATH)
     9: .fetch_itens(.verifica_parametros_entrada(parametros), API_path)
     10: query %>% tibble::as.tibble() %>% dplyr::rowwise() %>% dplyr::do(.congresso_api(API_path,
     .))
     ...
     25: .use_backoff_exponencial(path, query, timeout, tentativa + 1)
     26: .get_from_api(path, query, final_timeout, tentativa)
     27: .use_backoff_exponencial(path, query, timeout, tentativa + 1)
     28: .get_from_api(path, query, final_timeout, tentativa)
     29: .use_backoff_exponencial(path, query, timeout, tentativa + 1)
     30: .get_from_api(path, query, final_timeout, tentativa)
     31: .use_backoff_exponencial(path, query, timeout, tentativa + 1)
     32: .get_from_api(path, query, final_timeout, tentativa)
     33: .MENSAGEM_ERRO_REQ(httr::status_code(resp), api_url)
     34: stop(sprintf("Falha na requisicao a API dos Dados Abertos. Erro %s ao tentar acessar: %s",
     error_code, api_url), call. = FALSE)
    
     == testthat results ===========================================================
     OK: 71 SKIPPED: 0 FAILED: 1
     1. Error: Quantidade de itens por requisição (@test_proposicoes.R#81)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 0.4.6
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    
    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 62-65 (introducao-rcongresso.Rmd)
    Error: processing vignette 'introducao-rcongresso.Rmd' failed with diagnostics:
    there is no package called 'webshot'
    Execution halted
Flavor: r-patched-solaris-x86

Version: 0.4.6
Check: tests
Result: ERROR
     Running 'testthat.R' [258s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(rcongresso)
     >
     > test_check("rcongresso")
     -- 1. Error: Quantidade de itens por requisição (@test_proposicoes.R#83) ------
     API did not return json
     1: expect_equal(dim(fetch_proposicao(dataInicio = "2007-01-01", dataFim = "2017-01-01",
     itens = 386)), TAM_DF_386REQ) at testthat/test_proposicoes.R:83
     2: quasi_label(enquo(object), label)
     3: eval_bare(get_expr(quo), get_env(quo))
     4: fetch_proposicao(dataInicio = "2007-01-01", dataFim = "2017-01-01", itens = 386)
     5: .fetch_using_queries(parametros, .PROPOSICOES_PATH) %>% .assert_dataframe_completo(.COLNAMES_PROPOSICAO) %>%
     .coerce_types(.COLNAMES_PROPOSICAO)
     6: eval(lhs, parent, parent)
     7: eval(lhs, parent, parent)
     8: .fetch_using_queries(parametros, .PROPOSICOES_PATH)
     9: .fetch_itens(.verifica_parametros_entrada(parametros), API_path)
     10: query %>% tibble::as.tibble() %>% dplyr::rowwise() %>% dplyr::do(.congresso_api(API_path,
     .)) %>% dplyr::bind_rows(req_ultima_pagina %>% tibble::as.tibble() %>% dplyr::rowwise() %>%
     dplyr::do(.congresso_api(API_path, .)))
     ...
     13: eval(quote(`_fseq`(`_lhs`)), env, env)
     14: `_fseq`(`_lhs`)
     15: freduce(value, `_function_list`)
     16: function_list[[i]](value)
     17: dplyr::do(., .congresso_api(API_path, .))
     18: do.rowwise_df(., .congresso_api(API_path, .))
     19: eval_tidy(args[[j]], mask)
     20: .congresso_api(API_path, .)
     21: .get_from_api(path, query)
     22: stop(.ERRO_RETORNO_JSON, call. = FALSE)
    
     == testthat results ===========================================================
     OK: 73 SKIPPED: 0 FAILED: 1
     1. Error: Quantidade de itens por requisição (@test_proposicoes.R#83)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 0.4.6
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    
    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 62-65 (introducao-rcongresso.Rmd)
    Error: processing vignette 'introducao-rcongresso.Rmd' failed with diagnostics:
    cannot open the connection
    Execution halted
Flavors: r-release-osx-x86_64, r-oldrel-osx-x86_64

Version: 0.4.6
Check: tests
Result: ERROR
     Running 'testthat.R' [247s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(rcongresso)
     >
     > test_check("rcongresso")
     -- 1. Error: Quantidade de itens por requisição (@test_proposicoes.R#81) ------
     API did not return json
     1: expect_equal(dim(fetch_proposicao(dataInicio = "2007-01-01", dataFim = "2017-01-01",
     itens = 10)), TAM_DF_10REQ) at testthat/test_proposicoes.R:81
     2: quasi_label(enquo(object), label)
     3: eval_bare(get_expr(quo), get_env(quo))
     4: fetch_proposicao(dataInicio = "2007-01-01", dataFim = "2017-01-01", itens = 10)
     5: .fetch_using_queries(parametros, .PROPOSICOES_PATH) %>% .assert_dataframe_completo(.COLNAMES_PROPOSICAO) %>%
     .coerce_types(.COLNAMES_PROPOSICAO)
     6: eval(lhs, parent, parent)
     7: eval(lhs, parent, parent)
     8: .fetch_using_queries(parametros, .PROPOSICOES_PATH)
     9: .fetch_itens(.verifica_parametros_entrada(parametros), API_path)
     10: query %>% tibble::as.tibble() %>% dplyr::rowwise() %>% dplyr::do(.congresso_api(API_path,
     .))
     ...
     18: dplyr::do(., .congresso_api(API_path, .))
     19: do.rowwise_df(., .congresso_api(API_path, .))
     20: eval_tidy(args[[j]], mask)
     21: .congresso_api(API_path, .)
     22: .get_from_api(path, query)
     23: .use_backoff_exponencial(path, query, timeout, tentativa + 1)
     24: .get_from_api(path, query, final_timeout, tentativa)
     25: .use_backoff_exponencial(path, query, timeout, tentativa + 1)
     26: .get_from_api(path, query, final_timeout, tentativa)
     27: stop(.ERRO_RETORNO_JSON, call. = FALSE)
    
     == testthat results ===========================================================
     OK: 71 SKIPPED: 0 FAILED: 1
     1. Error: Quantidade de itens por requisição (@test_proposicoes.R#81)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64