pixr 0.1.1
New features
-
get_pix_cnae_stats(): access the newCnaePorteRecebedorendpoint, with PIX statistics by the receiver’s CNAE section, company size, and MEI status. -
get_pix_dict_users(): access the newPixUsuariosCadastradosDICTendpoint, the monthly series of users registered in the DICT. -
pix_columns("fraud")now documents the full fraud statistics schema (24 columns), andget_pix_fraud_stats()validatescolumnsagainst it. -
pix_endpoints()andpix_ping()now cover all six API endpoints. - New vignette: “Receiver Profiles (CNAE) and DICT Users” (
vignette("receiver-profiles-dict-users")).
Bug fixes
- Fixed the User-Agent string sent with API requests, which pointed to a placeholder GitHub URL instead of the package repository.
-
topis now validated: non-numeric or non-positive values abort with a clear message instead of silently sending$top=NAto the API.
Minor improvements
-
pix_timeout()now reads the default from the same internal constant used by the request builder. - Added a unit test suite covering the offline helpers (date parsing, URL building, column validation, and formatting).
- Removed an unused internal helper (
format_orderby()). -
DESCRIPTIONnow declaresLanguage: en-USand links to the documentation site at https://strategicprojects.github.io/pixr/. - Corrected this NEWS file: the 0.1.0 entry listed a function (
get_pix_growth_stats()) that was never part of the package.
pixr 0.1.0
Initial CRAN release.
Data access functions
-
get_pix_keys(): PIX keys stock by participant (DICT), withget_pix_keys_summary()andget_pix_keys_by_type()convenience aggregations. -
get_pix_transactions_by_municipality(): PIX transactions by municipality, withget_pix_transactions_by_state()andget_pix_transactions_by_region()aggregation wrappers. -
get_pix_transaction_stats(): detailed transaction statistics (payer and receiver type, region, age group, initiation method, and nature), withget_pix_summary()for grouped aggregations andget_pix_transaction_stats_multi()for multiple months. -
get_pix_fraud_stats(): fraud statistics from the Special Return Mechanism (MED), withget_pix_fraud_stats_multi()for multiple months.
Utilities
-
pix_ping(): test the connection to all API endpoints. -
pix_query(): low-level custom OData queries against any endpoint. -
pix_url(): build and inspect the request URL without performing it. -
pix_endpoints()andpix_columns(): endpoint and column metadata. -
pix_timeout(): get or set the request timeout (default 120 seconds). -
year_month_to_date(): convert"YYYYMM"strings toDate. -
format_brl(): format numbers as Brazilian Real currency.