Description
Shiny App - Generate a Pdf Invoice with 'Rmarkdown'.
Description
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>).
README.md
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/