From 8fa55a9f531f4b80e082c4bcd1412c3c7ea11e9e Mon Sep 17 00:00:00 2001 From: pvictor Date: Tue, 11 May 2021 10:18:08 +0200 Subject: [PATCH] moved examples files in inst/ --- R/shiny-input.R | 6 +++--- inst/{example-brush-proxy => examples/brush-proxy}/app.R | 0 .../rsconnect/shinyapps.io/dreamrs/example-brush-proxy.dcf | 0 inst/{example-brush => examples/brush}/app.R | 0 inst/{examples-input => examples/input}/click/app.R | 0 inst/{examples-input => examples/input}/selection/app.R | 0 inst/{examples-input => examples/input}/zoom/app.R | 0 inst/{examples-proxy => examples/proxy}/bar-auto/server.R | 0 inst/{examples-proxy => examples/proxy}/bar-auto/ui.R | 0 inst/{examples-proxy => examples/proxy}/gauge-auto/app.R | 0 inst/{example-spark => examples/spark}/app.R | 0 inst/{example-sync => examples/sync}/app.R | 0 12 files changed, 3 insertions(+), 3 deletions(-) rename inst/{example-brush-proxy => examples/brush-proxy}/app.R (100%) rename inst/{example-brush-proxy => examples/brush-proxy}/rsconnect/shinyapps.io/dreamrs/example-brush-proxy.dcf (100%) rename inst/{example-brush => examples/brush}/app.R (100%) rename inst/{examples-input => examples/input}/click/app.R (100%) rename inst/{examples-input => examples/input}/selection/app.R (100%) rename inst/{examples-input => examples/input}/zoom/app.R (100%) rename inst/{examples-proxy => examples/proxy}/bar-auto/server.R (100%) rename inst/{examples-proxy => examples/proxy}/bar-auto/ui.R (100%) rename inst/{examples-proxy => examples/proxy}/gauge-auto/app.R (100%) rename inst/{example-spark => examples/spark}/app.R (100%) rename inst/{example-sync => examples/sync}/app.R (100%) diff --git a/R/shiny-input.R b/R/shiny-input.R index 54be0f4..52693bc 100644 --- a/R/shiny-input.R +++ b/R/shiny-input.R @@ -217,7 +217,7 @@ set_input_export <- function(ax, inputId, run_demo_input <- function(example = c("click", "zoom", "selection")) { example <- match.arg(example) shiny::shinyAppFile( - appFile = system.file("examples-input", example, "app.R", package = "apexcharter"), + appFile = system.file("examples/input", example, "app.R", package = "apexcharter"), options = list("display.mode" = "showcase") ) } @@ -239,7 +239,7 @@ run_demo_input <- function(example = c("click", "zoom", "selection")) { #' } run_demo_sync <- function() { shiny::shinyAppFile( - appFile = system.file("example-sync", "app.R", package = "apexcharter"), + appFile = system.file("examples/sync", "app.R", package = "apexcharter"), options = list("display.mode" = "showcase") ) } @@ -259,7 +259,7 @@ run_demo_sync <- function() { #' } run_demo_sparkbox <- function() { shiny::shinyAppFile( - appFile = system.file("example-spark", "app.R", package = "apexcharter"), + appFile = system.file("examples/spark", "app.R", package = "apexcharter"), options = list("display.mode" = "showcase") ) } diff --git a/inst/example-brush-proxy/app.R b/inst/examples/brush-proxy/app.R similarity index 100% rename from inst/example-brush-proxy/app.R rename to inst/examples/brush-proxy/app.R diff --git a/inst/example-brush-proxy/rsconnect/shinyapps.io/dreamrs/example-brush-proxy.dcf b/inst/examples/brush-proxy/rsconnect/shinyapps.io/dreamrs/example-brush-proxy.dcf similarity index 100% rename from inst/example-brush-proxy/rsconnect/shinyapps.io/dreamrs/example-brush-proxy.dcf rename to inst/examples/brush-proxy/rsconnect/shinyapps.io/dreamrs/example-brush-proxy.dcf diff --git a/inst/example-brush/app.R b/inst/examples/brush/app.R similarity index 100% rename from inst/example-brush/app.R rename to inst/examples/brush/app.R diff --git a/inst/examples-input/click/app.R b/inst/examples/input/click/app.R similarity index 100% rename from inst/examples-input/click/app.R rename to inst/examples/input/click/app.R diff --git a/inst/examples-input/selection/app.R b/inst/examples/input/selection/app.R similarity index 100% rename from inst/examples-input/selection/app.R rename to inst/examples/input/selection/app.R diff --git a/inst/examples-input/zoom/app.R b/inst/examples/input/zoom/app.R similarity index 100% rename from inst/examples-input/zoom/app.R rename to inst/examples/input/zoom/app.R diff --git a/inst/examples-proxy/bar-auto/server.R b/inst/examples/proxy/bar-auto/server.R similarity index 100% rename from inst/examples-proxy/bar-auto/server.R rename to inst/examples/proxy/bar-auto/server.R diff --git a/inst/examples-proxy/bar-auto/ui.R b/inst/examples/proxy/bar-auto/ui.R similarity index 100% rename from inst/examples-proxy/bar-auto/ui.R rename to inst/examples/proxy/bar-auto/ui.R diff --git a/inst/examples-proxy/gauge-auto/app.R b/inst/examples/proxy/gauge-auto/app.R similarity index 100% rename from inst/examples-proxy/gauge-auto/app.R rename to inst/examples/proxy/gauge-auto/app.R diff --git a/inst/example-spark/app.R b/inst/examples/spark/app.R similarity index 100% rename from inst/example-spark/app.R rename to inst/examples/spark/app.R diff --git a/inst/example-sync/app.R b/inst/examples/sync/app.R similarity index 100% rename from inst/example-sync/app.R rename to inst/examples/sync/app.R