deepanshu88 / summarybox Goto Github PK
View Code? Open in Web Editor NEWValue and Info Boxes in Shiny Apps and Rmarkdown (Bootstrap 4)
Home Page: https://www.listendata.com/2021/03/value-info-box-in-shiny-rmarkdown.html
Value and Info Boxes in Shiny Apps and Rmarkdown (Bootstrap 4)
Home Page: https://www.listendata.com/2021/03/value-info-box-in-shiny-rmarkdown.html
Thank you for this library, i like using it short rmd output.
Ive recently updated a lot of libraries and now im getting an error when i run the summaryBox() function:
pandoc: /home/jan/R/x86_64-pc-linux-gnu-library/4.1/fontawesome/fontawesome/css/../webfonts/fa-v4compatibility.woff2: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 1
Please see system info below:
sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1
locale:
[1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8 LC_PAPER=C.UTF-8
[8] LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] summaryBox_0.1.0
loaded via a namespace (and not attached):
[1] compiler_4.1.0 fastmap_1.1.0 cli_3.4.1 htmltools_0.5.3 tools_4.1.0 rstudioapi_0.14 yaml_2.3.6 rmarkdown_2.18.1 knitr_1.41
[10] xfun_0.35 digest_0.6.30 rlang_1.0.6 evaluate_0.18
Can you please advise if there is something i need to install or download?
Regards
Jan
How can I arrange the summary boxes in a row in rmarkdown html file?
#| echo: false
#| label: "Summary boxes"
#Get values
totalTransaction <- all_monthly_plotData %>%
filter(YearMonth == as.Date(format(Sys.Date() - months(1), "%Y-%m-01"))) %>%
pull(Total_12M_rolling)
digitalTransaction <- all_monthly_plotData %>%
filter(YearMonth == as.Date(format(Sys.Date() - months(1), "%Y-%m-01"))) %>%
pull(Digital_12M_rolling)
digitalUptakePercent <- all_monthly_plotData %>%
filter(YearMonth == as.Date(format(Sys.Date() - months(1), "%Y-%m-01"))) %>%
pull(`Digital Uptake %`)
#Render summary box
grid.arrange(
summaryBox("Total Transaction", totalTransaction, width = 3, icon = "fas fa-percent", style = "info"),
summaryBox("Digital Transaction", digitalTransaction, width = 3, icon = "fas fa-percent", style = "info"),
summaryBox("Digital Uptake %", digitalUptakePercent, width = 3, icon = "fas fa-percent", style = "info"),
ncol=3
)
Hello Deepanshu,
This package is fantastic!!! It is exactly what I am looking for my project!!! Just wondering please could we publish it in CRAN. Therefore it will allow me to use this package in the organization instead of my personal PC.
Many thank and look forward to your reply!
hi
how can i download tar.gz file?
Thanks for the beautiful widget. would you help me with this error:
Couldn't normalize path in addResourcePath
, with arguments: prefix
= 'font-awesome-5.13.0'; directoryPath
= ''
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.