Bookkeeper is meant to provide a convenient solution for bookkeeping and administration in R. It provides features to create and store invoices, maintain daybooks for e.g., sales and purchases, and a customer data base. In the end, this managing of files can be used to generate a general ledger and an income statement. However, these features are still under development.
You can install the development version of bookkeeper from GitHub with devtools:
# Install point from GitHub:
# install.packages("devtools")
devtools::install_github("MartinSchobben/bookkeeper")
This is a basic example in Dutch which shows you how to generate a bill and consecutively cast this into an invoice:
# load package
library(bookkeeper)
# make customer database
add_customer_entry(
"Fancy Work",
NA_character_,
"Vleutensebaan 435",
"7009 ZZ Haarlem",
"Netherlands",
"NL1093se44"
)
# initiate bill entry
add_bill_entry(
"Tekstproductie (80 uur à € 70)",
21,
"€",
5600
)
# entry
add_bill_entry(
"Ontwerp (vaste prijs)",
21,
"€",
1250
)
# entry
add_bill_entry(
"10 foto’s à € 150",
21,
"€",
1500
)
# entry
add_bill_entry(
"Vormgeving (30 uur à € 60)",
21,
"€",
1800
)
# entry
add_bill_entry(
"1 kg Suiker",
9,
"€",
3000
)
# generate bill
make_bill(lang = "nl")
# render invoice
render_invoice("060101", lang = "nl")
The construction of the R (R Core Team 2021) package bookkeeper and associated documentation was aided by the packages; devtools (Wickham, Hester, and Chang 2021). The book: R packages: organize, test, document, and share your code, written by Wickham (2015), helped me learn many aspects of package development.
This package relies on a set of external packages from the tidyverse universe, including: dplyr (Wickham et al. 2021), tidyr (Wickham 2021), tibble (Müller and Wickham 2021), stringr (Wickham 2019), rlang (Henry and Wickham 2021), and purrr (Henry and Wickham 2020).
The documents, such as invoices and reports, are made possible by knitr (Xie 2014, 2015), rmarkdown (Xie, Allaire, and Grolemund 2018; Xie, Dervieux, and Riederer 2020), and komaletter (Nuske, Eddelbuettel, and Wolen 2021).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.