Skip to content

Commit

Permalink
fix line length issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkyle committed Oct 28, 2020
1 parent 877f463 commit b238a57
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
20 changes: 14 additions & 6 deletions R/dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ dashNoUpdate <- function() {
#' app$run_server()
#'
#' # Simple example illustrating use of ALLSMALLER selector
#' df <- read.csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv', stringsAsFactors = FALSE)
#'
#' df <- read.csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv',
#' stringsAsFactors = FALSE)
#'
#' app <- Dash$new()
#'
Expand All @@ -203,7 +203,8 @@ dashNoUpdate <- function() {
#' }),
#' value = unique(df$country)[n_clicks + 1]
#' ),
#' htmlDiv(id = list("index" = n_clicks, "type" = "output-ex3"), children = list(unique(df$country)[n_clicks + 1]))
#' htmlDiv(id = list("index" = n_clicks, "type" = "output-ex3"),
#' children = list(unique(df$country)[n_clicks + 1]))
#' ))
#'
#' existing_children <- c(existing_children, list(new_children))
Expand All @@ -226,15 +227,22 @@ dashNoUpdate <- function() {
#'
#' if (length(all_values) == 1) {
#' return(
#' htmlDiv(sprintf("%s is the life expectancy of %s.", avgLifeExp, matching_value))
#' htmlDiv(sprintf("%s is the life expectancy of %s.",
#' avgLifeExp,
#' matching_value))
#' )
#' } else if (length(all_values) == 2) {
#' return(
#' htmlDiv(sprintf("%s is the life expectancy of %s.", avgLifeExp, paste(all_values, collapse = " and ")))
#' htmlDiv(sprintf("%s is the life expectancy of %s.",
#' avgLifeExp,
#' paste(all_values, collapse = " and ")))
#' )
#' } else {
#' return(
#' htmlDiv(sprintf("%s is the life expectancy of %s, and %s.", avgLifeExp, paste(all_values[-length(all_values)], collapse = " , "), paste(all_values[length(all_values)])))
#' htmlDiv(sprintf("%s is the life expectancy of %s, and %s.",
#' avgLifeExp,
#' paste(all_values[-length(all_values)], collapse = " , "),
#' paste(all_values[length(all_values)])))
#' )
#' }
#' }
Expand Down
20 changes: 14 additions & 6 deletions man/selectors.Rd

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

0 comments on commit b238a57

Please sign in to comment.