Skip to content

Commit

Permalink
Add missing return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
PabRod committed Nov 15, 2024
1 parent e528bf7 commit 5f08eff
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 4 deletions.
2 changes: 2 additions & 0 deletions R/geom_token.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#' @param data A tokenized data frame (see `tokenize()`).
#' @inheritParams ggplot2::layer
#' @inheritParams ggplot2::geom_point
#'
#' @return A ggplot2 layer corresponding to a token
#' @export
geom_token <- function(data, mapping = NULL,
stat = "identity", position = "identity",
Expand Down
2 changes: 2 additions & 0 deletions R/geom_turn.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#' @inheritParams ggplot2::layer
#' @inheritParams ggplot2::geom_rect
#' @param height The height of the turn-taking rectangles
#'
#' @return A ggplot2 layer corresponding to a turn-taking rectangle
#' @export
geom_turn <- function(mapping = NULL, data = NULL,
stat = "identity", position = "identity",
Expand Down
1 change: 1 addition & 0 deletions R/report.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#'
#' @param data talkr dataset
#'
#' @return No return, just prints a summary to the console
#' @export
report_stats <- function(data) {
summary <- report(data)
Expand Down
5 changes: 3 additions & 2 deletions R/theme_turnPlot.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#' theme for the turn plot
#' T heme for the turn plot
#'
#' @param base_size int
#' @param base_family chr
#' @param ticks bool
#'
#' @importFrom ggplot2 %+replace%
#'
#' @return ggplot2 custom theme for turn plots
#' @export
#'
theme_turnPlot <- function(base_size = 11, base_family = "serif", ticks = TRUE) {
ggthemes::theme_tufte(
base_size = base_size,
Expand Down
3 changes: 3 additions & 0 deletions man/geom_token.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/geom_turn.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/report_stats.Rd

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

7 changes: 5 additions & 2 deletions man/theme_turnPlot.Rd

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

0 comments on commit 5f08eff

Please sign in to comment.