Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved R code #90

Merged
merged 4 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Imports:
config,
golem,
tippy,
gridExtra,
openai,
DT,
shinybusy,
Expand All @@ -26,15 +25,21 @@ Imports:
janitor,
RSQLite,
canvasXpress,
moments
Depends:
tidyverse
moments,
shiny,
heyshiny,
lubridate,
readxl,
rlang,
ggplot2,
dplyr,
methods,
rmarkdown
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.1
Suggests:
knitr,
rmarkdown,
testthat (>= 3.0.0)
Config/testthat/edition: 3
VignetteBuilder: knitr
82 changes: 81 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,10 +1,90 @@
# Generated by roxygen2: do not edit by hand

export(run_app)
import(shiny)
import(shiny, except=c(dataTableOutput, renderDataTable))
import(shiny, except=c(dataTableOutput, renderDataTable))

importFrom(DT,dataTableOutput)
importFrom(DT,datatable)
importFrom(DT,renderDataTable)
importFrom(DataExplorer,plot_bar)
importFrom(DataExplorer,plot_histogram)
importFrom(DataExplorer,plot_qq)
importFrom(GGally,ggpairs)
importFrom(RSQLite,SQLITE_RW)
importFrom(RSQLite,SQLite)
importFrom(RSQLite,dbConnect)
importFrom(RSQLite,dbDisconnect)
importFrom(RSQLite,dbExecute)
importFrom(canvasXpress,canvasXpress)
importFrom(canvasXpress,canvasXpressOutput)
importFrom(canvasXpress,renderCanvasXpress)
importFrom(config,get)
importFrom(corrplot,cor.mtest)
importFrom(corrplot,corrplot)
importFrom(dplyr,arrange)
importFrom(ggplot2,.data)
importFrom(ggplot2,aes)
importFrom(ggplot2,coord_flip)
importFrom(ggplot2,element_blank)
importFrom(ggplot2,expansion)
importFrom(ggplot2,geom_bar)
importFrom(ggplot2,geom_text)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,labs)
importFrom(ggplot2,scale_fill_brewer)
importFrom(ggplot2,scale_y_continuous)
importFrom(ggplot2,theme)
importFrom(golem,activate_js)
importFrom(golem,add_resource_path)
importFrom(golem,bundle_resources)
importFrom(golem,favicon)
importFrom(golem,with_golem_options)
importFrom(grDevices,pdf)
importFrom(heyshiny,speechInput)
importFrom(heyshiny,useHeyshiny)
importFrom(janitor,clean_names)
importFrom(lubridate,parse_date_time)
importFrom(methods,as)
importFrom(moments,skewness)
importFrom(openai,create_chat_completion)
importFrom(openai,create_completion)
importFrom(plotly,ggplotly)
importFrom(plotly,plotlyOutput)
importFrom(plotly,renderPlotly)
importFrom(readxl,read_excel)
importFrom(rlang,env)
importFrom(rmarkdown,render)
importFrom(shiny,modalDialog)
importFrom(shiny,removeModal)
importFrom(shiny,shinyApp)
importFrom(shiny,showModal)
importFrom(shiny,showNotification)
importFrom(shiny,tags)
importFrom(shinybusy,remove_modal_spinner)
importFrom(shinybusy,show_modal_spinner)
importFrom(shinyjs,click)
importFrom(shinyjs,hidden)
importFrom(shinyjs,hide)
importFrom(shinyjs,hideElement)
importFrom(shinyjs,runjs)
importFrom(shinyjs,show)
importFrom(shinyjs,showElement)
importFrom(shinyjs,toggle)
importFrom(shinyjs,useShinyjs)
importFrom(stats,aov)
importFrom(stats,chisq.test)
importFrom(stats,cor)
importFrom(stats,cor.test)
importFrom(stats,na.omit)
importFrom(stats,runif)
importFrom(stats,sd)
importFrom(summarytools,dfSummary)
importFrom(tableone,CreateTableOne)
importFrom(tippy,tippy_this)
importFrom(utils,capture.output)
importFrom(utils,packageVersion)
importFrom(utils,read.csv)
importFrom(utils,read.table)
importFrom(utils,sessionInfo)
importFrom(utils,str)
3 changes: 2 additions & 1 deletion R/app_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ app_sys <- function(...) {
#' @param file Location of the config file
#'
#' @noRd
#' @importFrom config get
get_golem_config <- function(
value,
config = Sys.getenv(
Expand All @@ -35,7 +36,7 @@ get_golem_config <- function(
# Modify this if your config file is somewhere else
file = app_sys("golem-config.yml")
) {
config::get(
get(
value = value,
config = config,
file = file,
Expand Down
Loading