Skip to content

Commit

Permalink
Remove dependence of emo, remove replacing asterisk by emoji's star; …
Browse files Browse the repository at this point in the history
…remove patchlevel from R dependence
  • Loading branch information
irudnyts committed Nov 14, 2021
1 parent c7ebdf8 commit 504ebe0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
6 changes: 2 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ LazyData: TRUE
URL: https://github.com/irudnyts/estudy2, https://irudnyts.github.io/estudy2/
BugReports: https://github.com/irudnyts/estudy2/issues
Depends:
R (>= 4.1.1)
R (>= 4.1)
Imports:
quantmod (>= 0.4.18),
zoo (>= 1.8.9),
Expand All @@ -53,8 +53,6 @@ Suggests:
stringr (>= 1.4.0),
magrittr (>= 2.0.1),
formattable (>= 0.2.1),
dplyr (>= 1.0.7),
emo
Remotes: github::hadley/emo
dplyr (>= 1.0.7)
VignetteBuilder: knitr
Encoding: UTF-8
2 changes: 1 addition & 1 deletion R/run_app.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ run_app <- function() {

packages <- c(
"curl", "shiny", "shinyFeedback", "shinyWidgets", "DT", "bslib",
"stringr", "magrittr", "formattable", "dplyr", "emo"
"stringr", "magrittr", "formattable", "dplyr"
)

purrr::walk(packages, check_installation)
Expand Down
10 changes: 2 additions & 8 deletions inst/app/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ sign_formatter <- formattable::formatter(
#' Beautify the result of \code{parametric_tests()} and
#' \code{nonparametric_tests()}
#'
#' The function beautifies the column names, formats percent columns, rounds
#' to the second digit, and replaces asterisks by emojis' stars.
#' The function beautifies the column names, formats percent columns, and rounds
#' to the second digit.
beautify <- function(tests_table) {

# beautify column names
Expand All @@ -112,12 +112,6 @@ beautify <- function(tests_table) {
2
)
) %>%
dplyr::mutate(
dplyr::across(
dplyr::contains("Signif"),
stringr::str_replace_all, stringr::fixed("*"), emo::ji("star")
)
) %>%
dplyr::mutate(
Percent = formattable::percent(Percent / 100, digits = 0),
Date = format(Date, "%b %d")
Expand Down

0 comments on commit 504ebe0

Please sign in to comment.