Skip to content

readapra

Download and Tidy Data from the Australian Prudential Regulation Authority

v0.2.1 · Feb 22, 2025 · MIT + file LICENSE

Description

Download the latest data from the Australian Prudential Regulation Authority <https://www.apra.gov.au/> and import it into R as a tidy data frame.

Downloads

153

Last 30 days

21299th

153

Last 90 days

153

Last year

CRAN Check Status

2 ERROR
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc ERROR
r-devel-linux-x86_64-fedora-clang ERROR
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
ERROR r-devel-linux-x86_64-debian-gcc

tests

  Running ‘testthat.R’ [9s/17s]
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(readapra)
  > 
  > test_check("readapra")
  Saving _problems/test-download_apra-102.R
  [ FAIL 1 | WARN 0 | SKIP 16 | PASS 73 ]
  
  ══ Skipped tests (16) ══════════════════════════════════════════════════════════
  • On CRAN (14): 'test-download_apra.R:2:3', 'test-download_apra.R:177:3',
    'test-download_apra.R:214:3', 'test-download_apra.R:231:3',
    'test-read_adipops.R:2:3', 'test-read_apra.R:2:3', 'test-read_apra.R:13:3',
    'test-read_apra.R:27:1', 'test-read_madis.R:2:3', 'test-read_qadicp.R:2:3',
    'test-read_qadipexs.R:2:3', 'test-read_qadips.R:2:3',
    'test-universal_helpers.R:62:1', 'test-universal_helpers.R:107:1'
  • On Linux (2): 'test-read_apra.R:277:3', 'test-universal_helpers.R:3:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-download_apra.R:102:3'): scrape_urls() behaves as expected ─────
  Error in `type[file == ""] <- empty`: replacement has length zero
  Backtrace:
      ▆
   1. └─readapra:::scrape_urls(session) at test-download_apra.R:102:3
   2.   ├─polite::scrape(url_session)
   3.   │ ├─base::withVisible(eval(mc, parent.frame()))
   4.   │ └─base::eval(mc, parent.frame())
   5.   │   └─base::eval(mc, parent.frame())
   6.   └─polite (local) `<fn>`(bow = url_session)
   7.     └─httr::accept(accept)
   8.       └─mime::guess_type(type, empty = NULL)
  
  [ FAIL 1 | WARN 0 | SKIP 16 | PASS 73 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-linux-x86_64-fedora-clang

tests

  Running ‘testthat.R’ [21s/71s]
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(readapra)
  > 
  > test_check("readapra")
  Saving _problems/test-download_apra-102.R
  [ FAIL 1 | WARN 0 | SKIP 16 | PASS 73 ]
  
  ══ Skipped tests (16) ══════════════════════════════════════════════════════════
  • On CRAN (14): 'test-download_apra.R:2:3', 'test-download_apra.R:177:3',
    'test-download_apra.R:214:3', 'test-download_apra.R:231:3',
    'test-read_adipops.R:2:3', 'test-read_apra.R:2:3', 'test-read_apra.R:13:3',
    'test-read_apra.R:27:1', 'test-read_madis.R:2:3', 'test-read_qadicp.R:2:3',
    'test-read_qadipexs.R:2:3', 'test-read_qadips.R:2:3',
    'test-universal_helpers.R:62:1', 'test-universal_helpers.R:107:1'
  • On Linux (2): 'test-read_apra.R:277:3', 'test-universal_helpers.R:3:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-download_apra.R:102:3'): scrape_urls() behaves as expected ─────
  Error in `type[file == ""] <- empty`: replacement has length zero
  Backtrace:
      ▆
   1. └─readapra:::scrape_urls(session) at test-download_apra.R:102:3
   2.   ├─polite::scrape(url_session)
   3.   │ ├─base::withVisible(eval(mc, parent.frame()))
   4.   │ └─base::eval(mc, parent.frame())
   5.   │   └─base::eval(mc, parent.frame())
   6.   └─polite (local) `<fn>`(bow = url_session)
   7.     └─httr::accept(accept)
   8.       └─mime::guess_type(type, empty = NULL)
  
  [ FAIL 1 | WARN 0 | SKIP 16 | PASS 73 ]
  Error:
  ! Test failures.
  Execution halted
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
OK r-oldrel-macos-arm64

*


            
OK r-oldrel-macos-x86_64

*


            
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

  Running ‘testthat.R’ [9s/17s]
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(r
ERROR r-devel-linux-x86_64-fedora-clang

tests

  Running ‘testthat.R’ [21s/71s]
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(

Dependency Network

Dependencies Reverse dependencies cli dplyr httr janitor lubridate memoise polite purrr (>= 1.0.0) ratelimitr rlang robotstxt rvest (>= 1.0.0) stringdist stringr tibble +3 more dependencies readapra

Version History

new 0.2.1 Mar 9, 2026