Last updated on 2025-08-30 03:50:12 CEST.
Package | ERROR | OK |
---|---|---|
sidra | 8 | 1 |
Current CRAN status: ERROR: 8, OK: 1
Version: 0.1.7
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(sidra)
>
> test_check("sidra")
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202|201203|201204|201205|201206|201207|201208|201209|201210|201211|201212|201301|201302|201303|201304|201305|201306|201307|201308|201309|201310|201311|201312|201401|201402|201403|201404|201405|201406|201407|201408|201409|201410|201411|201412|201501|201502|201503|201504|201505|201506|201507|201508|201509|201510|201511|201512|201601|201602|201603|201604|201605|201606|201607|201608|201609|201610|201611|201612|201701|201702|201703|201704|201705|201706|201707|201708|201709|201710|201711|201712|201801|201802|201803|201804|201805|201806|201807|201808|201809|201810|201811|201812|201901|201902|201903|201904|201905|201906|201907|201908|201909|201910|201911|201912|202001/variaveis/all?classificacao=315[all]&localidades=N1[all]"
A consulta excederá o limite de 100.000 permitido pela API.
Vamos contornar este problema fazendo várias solicitações menores.
Haverá maior demora
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202-201401/variaveis/all?classificacao=315[all]&localidades=N1"
[ FAIL 2 | WARN 2 | SKIP 0 | PASS 0 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-sidra.R:8:3'): sidra(1705) returns a data frame ────────────────
Error in `UseMethod("status_code")`: no applicable method for 'status_code' applied to an object of class "NULL"
Backtrace:
▆
1. └─sidra::sidra(1705) at test-sidra.R:8:3
2. └─base::lapply(...)
3. └─sidra (local) FUN(X[[i]], ...)
4. └─sidra::sidra(...)
5. └─httr::status_code(response)
── Failure ('test-tab_agr.R:6:7'): function tab_agr returns what is expected ───
`output_table` is not NULL
`actual` is a list
`expected` is NULL
API was not reacheable,
function should have returned NULL
[ FAIL 2 | WARN 2 | SKIP 0 | PASS 0 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.1.7
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(sidra)
>
> test_check("sidra")
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202|201203|201204|201205|201206|201207|201208|201209|201210|201211|201212|201301|201302|201303|201304|201305|201306|201307|201308|201309|201310|201311|201312|201401|201402|201403|201404|201405|201406|201407|201408|201409|201410|201411|201412|201501|201502|201503|201504|201505|201506|201507|201508|201509|201510|201511|201512|201601|201602|201603|201604|201605|201606|201607|201608|201609|201610|201611|201612|201701|201702|201703|201704|201705|201706|201707|201708|201709|201710|201711|201712|201801|201802|201803|201804|201805|201806|201807|201808|201809|201810|201811|201812|201901|201902|201903|201904|201905|201906|201907|201908|201909|201910|201911|201912|202001/variaveis/all?classificacao=315[all]&localidades=N1[all]"
A consulta excederá o limite de 100.000 permitido pela API.
Vamos contornar este problema fazendo várias solicitações menores.
Haverá maior demora
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202-201401/variaveis/all?classificacao=315[all]&localidades=N1"
[ FAIL 2 | WARN 1 | SKIP 0 | PASS 1 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-sidra.R:8:3'): sidra(1705) returns a data frame ────────────────
Error in `UseMethod("status_code")`: no applicable method for 'status_code' applied to an object of class "NULL"
Backtrace:
▆
1. └─sidra::sidra(1705) at test-sidra.R:8:3
2. └─base::lapply(...)
3. └─sidra (local) FUN(X[[i]], ...)
4. └─sidra::sidra(...)
5. └─httr::status_code(response)
── Failure ('test-tab_agr.R:10:7'): function tab_agr returns what is expected ──
`output_table` has type 'list', not 'data.frame'.
[ FAIL 2 | WARN 1 | SKIP 0 | PASS 1 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.7
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(sidra)
>
> test_check("sidra")
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202|201203|201204|201205|201206|201207|201208|201209|201210|201211|201212|201301|201302|201303|201304|201305|201306|201307|201308|201309|201310|201311|201312|201401|201402|201403|201404|201405|201406|201407|201408|201409|201410|201411|201412|201501|201502|201503|201504|201505|201506|201507|201508|201509|201510|201511|201512|201601|201602|201603|201604|201605|201606|201607|201608|201609|201610|201611|201612|201701|201702|201703|201704|201705|201706|201707|201708|201709|201710|201711|201712|201801|201802|201803|201804|201805|201806|201807|201808|201809|201810|201811|201812|201901|201902|201903|201904|201905|201906|201907|201908|201909|201910|201911|201912|202001/variaveis/all?classificacao=315[all]&localidades=N1[all]"
A consulta excederá o limite de 100.000 permitido pela API.
Vamos contornar este problema fazendo várias solicitações menores.
Haverá maior demora
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202-201401/variaveis/all?classificacao=315[all]&localidades=N1"
[ FAIL 2 | WARN 2 | SKIP 0 | PASS 0 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-sidra.R:8:3'): sidra(1705) returns a data frame ────────────────
Error in `UseMethod("status_code")`: no applicable method for 'status_code' applied to an object of class "NULL"
Backtrace:
▆
1. └─sidra::sidra(1705) at test-sidra.R:8:3
2. └─base::lapply(...)
3. └─sidra (local) FUN(X[[i]], ...)
4. └─sidra::sidra(...)
5. └─httr::status_code(response)
── Failure ('test-tab_agr.R:6:7'): function tab_agr returns what is expected ───
`output_table` is not NULL
`actual` is a list
`expected` is NULL
API was not reacheable,
function should have returned NULL
[ FAIL 2 | WARN 2 | SKIP 0 | PASS 0 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.7
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(sidra)
>
> test_check("sidra")
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202|201203|201204|201205|201206|201207|201208|201209|201210|201211|201212|201301|201302|201303|201304|201305|201306|201307|201308|201309|201310|201311|201312|201401|201402|201403|201404|201405|201406|201407|201408|201409|201410|201411|201412|201501|201502|201503|201504|201505|201506|201507|201508|201509|201510|201511|201512|201601|201602|201603|201604|201605|201606|201607|201608|201609|201610|201611|201612|201701|201702|201703|201704|201705|201706|201707|201708|201709|201710|201711|201712|201801|201802|201803|201804|201805|201806|201807|201808|201809|201810|201811|201812|201901|201902|201903|201904|201905|201906|201907|201908|201909|201910|201911|201912|202001/variaveis/all?classificacao=315[all]&localidades=N1[all]"
A consulta excederá o limite de 100.000 permitido pela API.
Vamos contornar este problema fazendo várias solicitações menores.
Haverá maior demora
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202-201401/variaveis/all?classificacao=315[all]&localidades=N1"
[ FAIL 2 | WARN 1 | SKIP 0 | PASS 1 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-sidra.R:8:3'): sidra(1705) returns a data frame ────────────────
Error in `UseMethod("status_code")`: no applicable method for 'status_code' applied to an object of class "NULL"
Backtrace:
▆
1. └─sidra::sidra(1705) at test-sidra.R:8:3
2. └─base::lapply(...)
3. └─sidra (local) FUN(X[[i]], ...)
4. └─sidra::sidra(...)
5. └─httr::status_code(response)
── Failure ('test-tab_agr.R:10:7'): function tab_agr returns what is expected ──
`output_table` has type 'list', not 'data.frame'.
[ FAIL 2 | WARN 1 | SKIP 0 | PASS 1 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.7
Check: tests
Result: ERROR
Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(sidra)
>
> test_check("sidra")
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202|201203|201204|201205|201206|201207|201208|201209|201210|201211|201212|201301|201302|201303|201304|201305|201306|201307|201308|201309|201310|201311|201312|201401|201402|201403|201404|201405|201406|201407|201408|201409|201410|201411|201412|201501|201502|201503|201504|201505|201506|201507|201508|201509|201510|201511|201512|201601|201602|201603|201604|201605|201606|201607|201608|201609|201610|201611|201612|201701|201702|201703|201704|201705|201706|201707|201708|201709|201710|201711|201712|201801|201802|201803|201804|201805|201806|201807|201808|201809|201810|201811|201812|201901|201902|201903|201904|201905|201906|201907|201908|201909|201910|201911|201912|202001/variaveis/all?classificacao=315[all]&localidades=N1[all]"
A consulta excederá o limite de 100.000 permitido pela API.
Vamos contornar este problema fazendo várias solicitações menores.
Haverá maior demora
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202-201401/variaveis/all?classificacao=315[all]&localidades=N1"
[ FAIL 2 | WARN 1 | SKIP 0 | PASS 1 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-sidra.R:8:3'): sidra(1705) returns a data frame ────────────────
Error in `UseMethod("status_code")`: no applicable method for 'status_code' applied to an object of class "NULL"
Backtrace:
▆
1. └─sidra::sidra(1705) at test-sidra.R:8:3
2. └─base::lapply(...)
3. └─sidra (local) FUN(X[[i]], ...)
4. └─sidra::sidra(...)
5. └─httr::status_code(response)
── Failure ('test-tab_agr.R:10:7'): function tab_agr returns what is expected ──
`output_table` has type 'list', not 'data.frame'.
[ FAIL 2 | WARN 1 | SKIP 0 | PASS 1 ]
Error: Test failures
Execution halted
Flavor: r-devel-windows-x86_64
Version: 0.1.7
Check: tests
Result: ERROR
Running ‘testthat.R’ [1s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(sidra)
>
> test_check("sidra")
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202|201203|201204|201205|201206|201207|201208|201209|201210|201211|201212|201301|201302|201303|201304|201305|201306|201307|201308|201309|201310|201311|201312|201401|201402|201403|201404|201405|201406|201407|201408|201409|201410|201411|201412|201501|201502|201503|201504|201505|201506|201507|201508|201509|201510|201511|201512|201601|201602|201603|201604|201605|201606|201607|201608|201609|201610|201611|201612|201701|201702|201703|201704|201705|201706|201707|201708|201709|201710|201711|201712|201801|201802|201803|201804|201805|201806|201807|201808|201809|201810|201811|201812|201901|201902|201903|201904|201905|201906|201907|201908|201909|201910|201911|201912|202001/variaveis/all?classificacao=315[all]&localidades=N1[all]"
A consulta excederá o limite de 100.000 permitido pela API.
Vamos contornar este problema fazendo várias solicitações menores.
Haverá maior demora
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202-201401/variaveis/all?classificacao=315[all]&localidades=N1"
[ FAIL 2 | WARN 1 | SKIP 0 | PASS 1 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-sidra.R:8:3'): sidra(1705) returns a data frame ────────────────
Error in `UseMethod("status_code")`: no applicable method for 'status_code' applied to an object of class "NULL"
Backtrace:
▆
1. └─sidra::sidra(1705) at test-sidra.R:8:3
2. └─base::lapply(...)
3. └─sidra (local) FUN(X[[i]], ...)
4. └─sidra::sidra(...)
5. └─httr::status_code(response)
── Failure ('test-tab_agr.R:10:7'): function tab_agr returns what is expected ──
`output_table` has type 'list', not 'data.frame'.
[ FAIL 2 | WARN 1 | SKIP 0 | PASS 1 ]
Error: Test failures
Execution halted
Flavor: r-release-macos-x86_64
Version: 0.1.7
Check: tests
Result: ERROR
Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(sidra)
>
> test_check("sidra")
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202|201203|201204|201205|201206|201207|201208|201209|201210|201211|201212|201301|201302|201303|201304|201305|201306|201307|201308|201309|201310|201311|201312|201401|201402|201403|201404|201405|201406|201407|201408|201409|201410|201411|201412|201501|201502|201503|201504|201505|201506|201507|201508|201509|201510|201511|201512|201601|201602|201603|201604|201605|201606|201607|201608|201609|201610|201611|201612|201701|201702|201703|201704|201705|201706|201707|201708|201709|201710|201711|201712|201801|201802|201803|201804|201805|201806|201807|201808|201809|201810|201811|201812|201901|201902|201903|201904|201905|201906|201907|201908|201909|201910|201911|201912|202001/variaveis/all?classificacao=315[all]&localidades=N1[all]"
A consulta excederá o limite de 100.000 permitido pela API.
Vamos contornar este problema fazendo várias solicitações menores.
Haverá maior demora
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202-201401/variaveis/all?classificacao=315[all]&localidades=N1"
[ FAIL 2 | WARN 2 | SKIP 0 | PASS 0 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-sidra.R:8:3'): sidra(1705) returns a data frame ────────────────
Error in `UseMethod("status_code")`: no applicable method for 'status_code' applied to an object of class "NULL"
Backtrace:
▆
1. └─sidra::sidra(1705) at test-sidra.R:8:3
2. └─base::lapply(...)
3. └─sidra (local) FUN(X[[i]], ...)
4. └─sidra::sidra(...)
5. └─httr::status_code(response)
── Failure ('test-tab_agr.R:6:7'): function tab_agr returns what is expected ───
`output_table` is not NULL
`actual` is a list
`expected` is NULL
API was not reacheable,
function should have returned NULL
[ FAIL 2 | WARN 2 | SKIP 0 | PASS 0 ]
Error: Test failures
Execution halted
Flavor: r-release-windows-x86_64
Version: 0.1.7
Check: tests
Result: ERROR
Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(sidra)
>
> test_check("sidra")
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202|201203|201204|201205|201206|201207|201208|201209|201210|201211|201212|201301|201302|201303|201304|201305|201306|201307|201308|201309|201310|201311|201312|201401|201402|201403|201404|201405|201406|201407|201408|201409|201410|201411|201412|201501|201502|201503|201504|201505|201506|201507|201508|201509|201510|201511|201512|201601|201602|201603|201604|201605|201606|201607|201608|201609|201610|201611|201612|201701|201702|201703|201704|201705|201706|201707|201708|201709|201710|201711|201712|201801|201802|201803|201804|201805|201806|201807|201808|201809|201810|201811|201812|201901|201902|201903|201904|201905|201906|201907|201908|201909|201910|201911|201912|202001/variaveis/all?classificacao=315[all]&localidades=N1[all]"
A consulta excederá o limite de 100.000 permitido pela API.
Vamos contornar este problema fazendo várias solicitações menores.
Haverá maior demora
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201202-201401/variaveis/all?classificacao=315[all]&localidades=N1"
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201402-201601/variaveis/all?classificacao=315[all]&localidades=N1"
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201602-201801/variaveis/all?classificacao=315[all]&localidades=N1"
[1] "https://servicodados.ibge.gov.br/api/v3/agregados/1705/periodos/201802-202001/variaveis/all?classificacao=315[all]&localidades=N1"
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 2 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-sidra.R:14:3'): sidra(1705) returns a data frame ─────────────
`output_table` has type 'list', not 'data.frame'.
── Failure ('test-tab_agr.R:10:7'): function tab_agr returns what is expected ──
`output_table` has type 'list', not 'data.frame'.
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 2 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.