Skip to content

Commit b238a57

Browse files
author
rpkyle
committed
fix line length issue
1 parent 877f463 commit b238a57

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

R/dependencies.R

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ dashNoUpdate <- function() {
178178
#' app$run_server()
179179
#'
180180
#' # Simple example illustrating use of ALLSMALLER selector
181-
#' df <- read.csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv', stringsAsFactors = FALSE)
182-
#'
181+
#' df <- read.csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv',
182+
#' stringsAsFactors = FALSE)
183183
#'
184184
#' app <- Dash$new()
185185
#'
@@ -203,7 +203,8 @@ dashNoUpdate <- function() {
203203
#' }),
204204
#' value = unique(df$country)[n_clicks + 1]
205205
#' ),
206-
#' htmlDiv(id = list("index" = n_clicks, "type" = "output-ex3"), children = list(unique(df$country)[n_clicks + 1]))
206+
#' htmlDiv(id = list("index" = n_clicks, "type" = "output-ex3"),
207+
#' children = list(unique(df$country)[n_clicks + 1]))
207208
#' ))
208209
#'
209210
#' existing_children <- c(existing_children, list(new_children))
@@ -226,15 +227,22 @@ dashNoUpdate <- function() {
226227
#'
227228
#' if (length(all_values) == 1) {
228229
#' return(
229-
#' htmlDiv(sprintf("%s is the life expectancy of %s.", avgLifeExp, matching_value))
230+
#' htmlDiv(sprintf("%s is the life expectancy of %s.",
231+
#' avgLifeExp,
232+
#' matching_value))
230233
#' )
231234
#' } else if (length(all_values) == 2) {
232235
#' return(
233-
#' htmlDiv(sprintf("%s is the life expectancy of %s.", avgLifeExp, paste(all_values, collapse = " and ")))
236+
#' htmlDiv(sprintf("%s is the life expectancy of %s.",
237+
#' avgLifeExp,
238+
#' paste(all_values, collapse = " and ")))
234239
#' )
235240
#' } else {
236241
#' return(
237-
#' 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)])))
242+
#' htmlDiv(sprintf("%s is the life expectancy of %s, and %s.",
243+
#' avgLifeExp,
244+
#' paste(all_values[-length(all_values)], collapse = " , "),
245+
#' paste(all_values[length(all_values)])))
238246
#' )
239247
#' }
240248
#' }

man/selectors.Rd

Lines changed: 14 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)