register_beancount()
andregister_hledger()
now import a transactionid
column (#21). Thanks @vikasrawal for suggestion.register_beancount()
now coerces thedate
column to a "Date" object.register_ledger()
andregister_hledger()
already did so.register_ledger()
now trims thecomment
column withstringr::str_trim()
.
- The R package
{rio}
has been downgraded from "Imports" to "Suggests". Users who want to userio::import()
orrio::convert()
will need to manually install{rio}
.
- Fixes importing
hledger
date for newer versions ofhledger
(#19). Thanks @chrislloyd for bug report and patch.
- Fixes bug when importing
hledger
files with amounts that use comma decimal marks and/or commodity prefixes (#18). Thanks @StefanBRas for bug report. - System dependency for importing
hledger
files has been relaxed tohledger (>= 1.2)
. Previously depended onhledger (>=1.4)
.
- For
beancount
files read in withregister_beancount()
with the enddate
argument 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 newhledger
market value behavior.
- For
ledger
filesregister()
no longer filters out transactions with amount equal to zero (#13).
- Now
register()
returns atibble
instead of adata.frame
. - By default now reads in
beancount
files using the output frombean-query
instead ofbean-report
followed up byhledger
. - Most users of the
ledger
R package won't need to change any code.
- Now has
prune_coa
andprune_coa_string
functions 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).
register()
now has adate
argument 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.
- Initial release on CRAN.
- Implemented a workaround to get
register()
working withledger
andbean-report
on Windows (#15).
- Removed
regex
argument fromnet_worth
while addinginclude
,exlude
, andignore_case
arguments.
- Add
toolchain
argument toregister()
andnet_worth()
. - Add new columns to
net_worth
.
- Removed
include_cleared
,include_pending
,include_unmarked
,convert_to_cost
, andconvert_to_market_value
arguments fromregister()
(#6). - Added
flags
arguments toregister()
(#6). - Added a new
mark
column to imported data frames with values"*"
,"!"
, or""
(#6). - For hledger/beancount files added new
historical_cost
,hc_commodity
,market_value
andmv_commodity
columns (#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
amount
field to numeric). - Added new
net_worth()
function.