Skip to content

Commit

Permalink
change: changes for CRAN submission
Browse files Browse the repository at this point in the history
  • Loading branch information
tin900 committed Apr 25, 2024
1 parent 4821666 commit 1a78ac4
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 18 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Authors@R:
person(given = "VU Analytics",
role = "cph"
))
Description: Provides a user-friendly R Shiny app for performing various statistical tests on datasets.
Description: Provides a user-friendly R 'shiny' app for performing various statistical tests on datasets.
It allows users to upload data in numerous formats and perform statistical analyses.
The app dynamically adapts its options based on the selected columns and supports both single and multiple column comparisons.
The app's user interface is designed to streamline the process of selecting datasets, columns, and test options,
Expand Down
3 changes: 2 additions & 1 deletion R/global.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#' Helper function to display a data table in a Shiny app.
#'
#' @param data The data frame to display.
#' @return A Shiny output object representing the data table
#'
#' @export
#'
Expand Down Expand Up @@ -370,7 +371,7 @@ perform_statistical_test <- function(data, input) {
)
},
error = function(e) {
cat(paste0("Error: ", e))
stop(paste0("Error: ", e))
NULL
}
)
Expand Down
19 changes: 9 additions & 10 deletions R/run_vvdoctor.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
#'
#' This function starts the Shiny app, which allows users to upload data and perform
#' statistical tests on the dataset.
#' @return No return value, the function runs the Shiny app
#' @examples
#' if (interactive()) {
#' run_vvdoctor()
#' }
#'
#' @export
#'
#' @examples
#' \dontrun{
#' library(vvdoctor)
#' run_statistical_test_app()
#' }
run_vvdoctor <- function() {
shiny::shinyApp(ui = app_ui(), server = app_server)
}
Expand All @@ -21,15 +21,14 @@ run_vvdoctor <- function() {
#' and perform various statistical tests on the dataset. Users can select the
#' dependent and independent variables, choose the appropriate statistical test,
#' and view the results.
#' @examples
#' if (interactive()) {
#' diagnose()
#' }
#'
#' @return NULL The function does not return a value, but launches the Shiny app.
#' @export
#'
#' @examples
#' \dontrun{
#' library(vvdoctor)
#' diagnose()
#' }
diagnose <- function() {
shiny::shinyApp(ui = app_ui(), server = app_server)
}
2 changes: 2 additions & 0 deletions R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#' @param output The output object from the Shiny app.
#' @param session The session object from the Shiny app.
#'
#' @return No return value, called for side effects
#'
#' @export
app_server <- function(input, output, session) {
shiny::observeEvent(input$launch_modal, {
Expand Down
1 change: 1 addition & 0 deletions R/ui.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#' App UI
#'
#' @return A Shiny UI object
#' @export
#'
app_ui <- function() {
Expand Down
3 changes: 3 additions & 0 deletions man/app_server.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/app_ui.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/diagnose.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/display_data_table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions man/run_vvdoctor.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a78ac4

Please sign in to comment.