Shiny App - Generate a Pdf Invoice with 'Rmarkdown'

Generate an invoice containing a header with invoice number and businesses details. The invoice table contains any of: salary, one-liner costs, grouped costs. Under the table signature and bank account details appear. Pages are numbered when more than one. Source .json and .Rmd files are editable in the app. A .csv file with raw data can be downloaded. This package includes functions for getting exchange rates between currencies based on 'quantmod' (Ryan and Ulrich, 2023 < https://CRAN.R-project.org/package=quantmod>).


shinyInvoice


Generate a Pdf Invoice with 'Rmarkdown'

In this repository the app in the inst folder is a submodule
Module Repository: https://github.com/fernandoroa/invoice-public

Install package

install.packages("shinyInvoice")

Install from github

devtools::install_github("fernandoroa/shinyInvoice",
                         ref = "main"
                        )

How to run app in temp folder (default)

After installing the package, run the function shinyInvoice::runInvoice()

How to run in a local folder


# go to your desired working folder in R
(setwd...)

# Having the package installed,
# copy the app to the working folder:
file.copy(system.file("shinyApps", "invoice_app", package = "shinyInvoice"), getwd(), recursive = TRUE)

# Read the main file
main <- readLines("invoice_app/app/main.R")

# Change string to use the local mode
main <- sub("local_safe_computer_mode <- FALSE", "local_safe_computer_mode <- TRUE", main)
writeLines(main, "invoice_app/app/main.R")
shiny::runApp("invoice_app/app.R")

This way when you save changes or do any download action your files will be (also) in the local folder:

invoice_app/app/tmp_dir/

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("shinyInvoice")

0.0.5 by Fernando Roa, 3 years ago


https://github.com/fernandoroa/invoice-public


Report a bug at https://github.com/fernandoroa/invoice-public/issues


Browse source code at https://github.com/cran/shinyInvoice


Authors: Fernando Roa [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports tibble, dplyr, quantmod, rlang, stringr, shiny, lubridate

Suggests fs, jsonlite, pillar, readr, rhino, rjson, shinyAce, tinytex, rmarkdown, curl

System requirements: pandoc (>= 2.0)


See at CRAN