CRAN Package Check Results for Package politicaldata

Last updated on 2020-01-19 16:47:45 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.3 1.94 22.37 24.31 OK
r-devel-linux-x86_64-debian-gcc 0.1.3 1.68 18.45 20.13 OK
r-devel-linux-x86_64-fedora-clang 0.1.3 31.02 NOTE
r-devel-linux-x86_64-fedora-gcc 0.1.3 29.69 NOTE
r-devel-windows-ix86+x86_64 0.1.3 7.00 44.00 51.00 OK
r-devel-windows-ix86+x86_64-gcc8 0.1.3 5.00 54.00 59.00 OK
r-patched-linux-x86_64 0.1.3 1.58 21.18 22.76 OK
r-patched-solaris-x86 0.1.3 44.30 NOTE
r-release-linux-x86_64 0.1.3 1.50 20.87 22.37 ERROR
r-release-windows-ix86+x86_64 0.1.3 8.00 44.00 52.00 OK
r-release-osx-x86_64 0.1.3 NOTE
r-oldrel-windows-ix86+x86_64 0.1.3 4.00 37.00 41.00 OK
r-oldrel-osx-x86_64 0.1.3 NOTE

Check Details

Version: 0.1.3
Check: data for non-ASCII characters
Result: NOTE
     Note: found 9 marked UTF-8 strings
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-osx-x86_64, r-oldrel-osx-x86_64

Version: 0.1.3
Check: examples
Result: ERROR
    Running examples in ‘politicaldata-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: get_house_nominate
    > ### Title: Get DW-nominate Scores for members of the U.S. House
    > ### Aliases: get_house_nominate
    >
    > ### ** Examples
    >
    >
    >
    > # get the scores for the 116th (2019-2021) congress
    > house <- get_house_nominate(congress=116)
    Warning in open.connection(file, "rt") :
     URL 'https://voteview.com/static/data/out/members/H116_members.csv': status was 'Timeout was reached'
    Error in open.connection(file, "rt") :
     cannot open the connection to 'https://voteview.com/static/data/out/members/H116_members.csv'
    Calls: get_house_nominate ... as.data.frame -> read.csv -> read.table -> open -> open.connection
    Execution halted
Flavor: r-release-linux-x86_64

Version: 0.1.3
Check: tests
Result: ERROR
     Running ‘testthat.R’ [2s/132s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     >
     > test_check("politicaldata")
     Loading required package: politicaldata
     ── 1. Error: get_house_nominate() outputs non-empty dataset (@test-get_house_nom
     cannot open the connection to 'https://voteview.com/static/data/out/members/H116_members.csv'
     Backtrace:
     1. testthat::expect_is(get_house_nominate(116), class = "data.frame")
     4. politicaldata::get_house_nominate(116)
     6. utils::read.csv(url(link), stringsAsFactors = F, encoding = "UTF-8")
     7. utils::read.table(...)
     9. base::open.connection(file, "rt")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 1 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 1 ]
     1. Error: get_house_nominate() outputs non-empty dataset (@test-get_house_nominate.R#7)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-linux-x86_64