ledger 2.1.1
CRAN release: 2026-06-12
New features
-
For
beancountfiles we now supportrustledger(>= 0.15.0) in addition tobean-query(#28):-
net_worth()andregister()now supporttoolchain = "bean-query"andtoolchain = "rledger"(in addition to"ledger","hledger", and"beancount"). -
register_rledger()added to support the"rledger"toolchain fromrustledger(>= 0.15.0). -
register_bean_query()added to explicitly support the"bean-query"toolchain that directly uses thebean-querybinary. -
register_beancount()continues to usebean-queryif present but ifbean-queryis not present it now falls back torledger. Hence the"beancount"toolchain now works if eitherbeanqueryorrustledgerare installed.
-
ledger 2.0.13
CRAN release: 2026-03-30
Deprecated features
- The
"bean-report_ledger"and"bean-report_hledger"toolchains are deprecated sincebean-reportwas removed frombeancountin 2020. Use the"beancount"toolchain that usesbean-queryinstead.
New features
-
register_ledger()now imports a transactioncodecolumn (#25).
Bug fixes and minor improvements
-
register_ledger()now extracts marks that are embedded in the descriptions whichledger’s csv output sometimes does when when both transaction codes and marks are present in the transaction.
ledger 2.0.11
CRAN release: 2024-05-20
-
register_beancount()andregister_hledger()now import a transactionidcolumn (#21). Thanks @vikasrawal for suggestion. -
register_beancount()now coerces thedatecolumn to a “Date” object.register_ledger()andregister_hledger()already did so. -
register_ledger()now trims thecommentcolumn withstringr::str_trim().
ledger 2.0.9
CRAN release: 2021-11-12
- The R package rio has been downgraded from “Imports” to “Suggests”. Users who want to use
rio::import()orrio::convert()will need to manually install rio.
ledger 2.0.7
CRAN release: 2020-05-18
- Fixes importing
hledgerdate for newer versions ofhledger(#19). Thanks @chrislloyd for bug report and patch.
ledger 2.0.6
CRAN release: 2020-02-16
- Fixes bug when importing
hledgerfiles with amounts that use comma decimal marks and/or commodity prefixes (#18). Thanks @StefanBRas for bug report. - System dependency for importing
hledgerfiles has been relaxed tohledger (>= 1.2). Previously depended onhledger (>=1.4).
ledger 2.0.4
CRAN release: 2019-10-21
- For
beancountfiles read in withregister_beancount()with the enddateargument set we no longer use any price directives on the end date to determine market value but only those strictly before the end date. This matches the filtering of transactions and the newhledgermarket value behavior.
ledger 2.0.2
CRAN release: 2019-09-03
- For
ledgerfilesregister()no longer filters out transactions with amount equal to zero (#13).
ledger 2.0.0
CRAN release: 2019-01-15
Breaking changes
- Now
register()returns atibbleinstead of adata.frame. - By default now reads in
beancountfiles using the output frombean-queryinstead ofbean-reportfollowed up byhledger. - Most users of the
ledgerR package won’t need to change any code.
New functions
- Now has
prune_coaandprune_coa_stringfunctions to help simplify plaintext accounting “Chart of Accounts” names to a given maximum depth. - Lower level
register_beancount(),register_ledger(), andregister_hledger()functions are now exported (and documented).
Minor improvements and fixes
-
register()now has adateargument than can be used to exclude transactions (and implicitly price statements) before that date. -
register()now preserves transaction comments when importing ledger files (#16). Thanks Jenya Sovetkin for patch. -
register()now preserves tags when importing beancount files.
ledger 0.8.0
- Implemented a workaround to get
register()working withledgerandbean-reporton Windows (#15).
ledger 0.7.0
- Removed
regexargument fromnet_worthwhile addinginclude,exlude, andignore_casearguments.
ledger 0.6.0
- Add
toolchainargument toregister()andnet_worth(). - Add new columns to
net_worth.
ledger 0.5.3
- Removed
include_cleared,include_pending,include_unmarked,convert_to_cost, andconvert_to_market_valuearguments fromregister()(#6). - Added
flagsarguments toregister()(#6). - Added a new
markcolumn to imported data frames with values"*","!", or""(#6). - For hledger/beancount files added new
historical_cost,hc_commodity,market_valueandmv_commoditycolumns (#6). - Wrote and exported S3 methods so can use
rio::import()to read in registers (#7). - Now throws an error if required binaries not found (#8).
- Fixed bug in importing hledger or beancount files (now automatically casts
amountfield to numeric). - Added new
net_worth()function.