Skip to content

Commit

Permalink
Fix check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
william-hutchison committed May 20, 2024
1 parent 8a72ac5 commit b0e7ce9
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 14 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ Imports:
RColorBrewer,
stringr,
shiny,
plotly
plotly,
ggplot2
RdMacros: lifecycle
Suggests:
testthat,
Expand Down
2 changes: 1 addition & 1 deletion R/functions_OLD.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ pretty_plot = function(.data,
#'
#' @return A tibble with additional columns
#'
gate_interactive_old <-
gate_interactive <-
function(.data,
.element,
.dim1,
Expand Down
7 changes: 5 additions & 2 deletions R/gate_app.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' Create Shiny App UI
#' @noRd
#'
#' @importFrom shiny fluidPage
#' @importFrom shiny actionButton
#' @importFrom plotly plotlyOutput
Expand All @@ -13,7 +13,7 @@ ui <-
)

#' Run Shiny App for interactive gating
#' @noRd
#'
#' @importFrom plotly renderPlotly
#' @importFrom plotly event_data
#' @importFrom plotly ggplotly
Expand All @@ -24,6 +24,9 @@ ui <-
#' @importFrom purrr map_lgl
#' @importFrom shiny observe
#' @importFrom shiny stopApp
#' @param input Server input parameter
#' @param output Server output parameter
#' @param session Server session parameter
#' @return NA
#' @export
server <-
Expand Down
6 changes: 3 additions & 3 deletions R/methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ gate_int.numeric = function( .dim1,
#' points. A record of the selected points is stored in `tidygate_env$select_data` and a record of
#' the gates is stored in `tidygate_env$brush_data`.
#' @examples
#' \donttest{
#' \dontrun{
#' library(dplyr)
#' library(ggplot2)
#'
Expand Down Expand Up @@ -253,7 +253,7 @@ gate_simple <-
#' points. A record of the selected points is stored in `tidygate_env$select_data` and a
#' record of the gates is stored in `tidygate_env$brush_data`.
#' @examples
#' \donttest{
#' \dontrun{
#' library(dplyr)
#' library(ggplot2)
#'
Expand All @@ -266,7 +266,7 @@ gate_simple <-
#' theme_dark()
#'
#' mtcars |>
#' mutate(selected = gate_interactive(dimension_x = mpg, dimension_y = wt, custom_plot = scaled_plot)) |>
#' mutate(selected = gate_custom(custom_plot = scaled_plot)) |>
#' print()
#' }
#' @export
Expand Down
4 changes: 2 additions & 2 deletions man/gate_custom.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/gate_interactive_old.Rd → man/gate_interactive.Rd

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

2 changes: 1 addition & 1 deletion man/gate_simple.Rd

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

21 changes: 21 additions & 0 deletions man/server.Rd

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

19 changes: 19 additions & 0 deletions man/ui.Rd

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

2 changes: 1 addition & 1 deletion vignettes/introdution.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "tidygate: high-level data analysis and manipulation in tidyverse style"
output: github_documentdate: "`r Sys.Date()`"
date: "`r Sys.Date()`"
package: tidygate
output:
BiocStyle::html_document:
Expand Down

0 comments on commit b0e7ce9

Please sign in to comment.