diff --git a/NEWS.md b/NEWS.md index 814d468d0..e1dd2dff2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # pins (development version) +* Drop add ins since they're not tested or documented (#525) + # pins 1.0.0 pins 1.0.0 includes a new, more explicit, API that includes robust support for versioning. In the modern API, you create a board object which is passed to every `pin_` function instead of "registering" a board that is later refereed to with a string. This leads to code like this: diff --git a/inst/rstudio/addins.dcf b/inst/rstudio/addins.dcf deleted file mode 100644 index 1b4d10ecd..000000000 --- a/inst/rstudio/addins.dcf +++ /dev/null @@ -1,4 +0,0 @@ -Name: Find Pins -Description: Find pins in all the registered boards -Binding: ui_addin_pin_find -Interactive: true diff --git a/inst/rstudio/connections.dcf b/inst/rstudio/connections.dcf deleted file mode 100644 index 945cde399..000000000 --- a/inst/rstudio/connections.dcf +++ /dev/null @@ -1,4 +0,0 @@ -Name: Pins -ShinyApp: ui_connection_create -HelpUrl: https://rstudio.github.io/pins/ -Icon: icons/pins.png diff --git a/inst/rstudio/shinyaddin/app.R b/inst/rstudio/shinyaddin/app.R deleted file mode 100644 index 9a25b5e98..000000000 --- a/inst/rstudio/shinyaddin/app.R +++ /dev/null @@ -1,39 +0,0 @@ -library(pins) - -pins_addin_source_choices <- function() { -} - -pins_addin_server <- function(input, output, session) { - board <- reactive(if (identical(input$board, "all")) NULL else input$board) - - observe({ - results <- pin_find(input$search, board = board(), metadata = TRUE) - session$sendCustomMessage("search-results", results) - }) - - observe({ - results <- list( - boards = lapply(board_list(), function(e) pins::board_get(e)) - ) - - session$sendCustomMessage("initialized", results) - }) - - observe({ - dataset <- input$dataset - if (is.character(dataset) && nchar(dataset) > 0) { - board_text <- "" - if (!is.null(board())) { - board_text <- paste0(", board = \"", board(), "\"") - } - - rstudioapi::sendToConsole(paste0( - "View(pins::pin_preview(pins::pin_get(\"", dataset , "\"", board_text, ")))" - )) - - stopApp(dataset) - } - }) -} - -shinyApp(htmlTemplate("www/index.html"), pins_addin_server) diff --git a/inst/rstudio/shinyaddin/www/addin.css b/inst/rstudio/shinyaddin/www/addin.css deleted file mode 100644 index 07bea9477..000000000 --- a/inst/rstudio/shinyaddin/www/addin.css +++ /dev/null @@ -1,190 +0,0 @@ -html { - height: 100%; -} - -body { - font-family : "Lucida Sans", "DejaVu Sans", "Lucida Grande", "Segoe UI", Verdana, Helvetica, sans-serif; - font-size : 12px; - -ms-user-select : none; - -moz-user-select : none; - -webkit-user-select : none; - user-select : none; - - background: #FFF; - - margin-bottom: 0; - - height: 100%; - margin: 0; -} - -#app { - display: flex; - flex-direction: column; - height: 100%; -} - -table { - margin-bottom: 12px; - padding-bottom: 6px; - border-bottom: solid 1px #DFDFDF; -} - -select { - background: #FFF; -} - -#search { - width: 300px; - height: 16px; -} - -#board { - width: 100px; -} - -#status { - text-align: center; - padding-top: 100px; - position: absolute; - width: 95%; -} - -.result-entry { - height: 50px; - width: 500px; - margin-bottom: 8px; - display: flex; - cursor: pointer; -} - -.result-entry-info { - height: 50px; - width: 400px; - display: inline-block; - overflow: hidden; -} - -.result-entry-info-name { - height: 16px; - width: 400px; - color: #464646; - font-weight: bold; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; -} - -.result-entry-info-desc { - height: 30px; - width: 400px; - color: #7c7c7c; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; -} - -.result-entry-table { - display: flex; - overflow: hidden; - width: 50px; - height: 55px; - font-size: 3px; - padding: 2px 5px 3px 5px; -} - -.result-entry-table > div { - width: 100%; -} - -.result-entry-table > div { - height: 3px; -} - -/* entry table: row style */ -.result-entry-table > div > div:nth-child(even) { - background: #ffebcb; -} - -/* entry table: row style */ -.result-entry-table > div > div:nth-child(odd) { - background: #fff9f0; -} - -/* entry table: column style odd */ -.result-entry-table > div { - margin-right: 1px; -} - -/* entry table: header style */ -.result-entry-table > div > div:nth-child(1) { - background: #f5b348; -} - -/* entry table: row padding */ -.result-entry-table > div > div.row-padding { - background: #fffdfa; -} - -/* disabled */ -.result-entry-table.result-entry-table-nodims > div > div:nth-child(even) { - background: #eeeeee; -} -.result-entry-table.result-entry-table-nodims > div > div:nth-child(odd) { - background: #fcfcfc; -} -.result-entry-table.result-entry-table-nodims > div > div:nth-child(1) { - background: #929292; -} -.result-entry-table.result-entry-table-nodims > div > div.row-padding { - background: #fafafa; -} - -/* files */ -.result-entry-files { - padding: 0px 8px 0 2px; -} - -.navigation { - flex-grow: 0; - border-top: solid 1px #DFDFDF; - margin-left: auto; - margin-right: auto; - text-align: center; - padding-top: 6px; -} - -.navigation > a { - padding-left: 4px; - padding-right: 4px; - line-height: 26px; - text-decoration: none; - color: #333; - display: inline-block; - min-width: 25px; -} - -.navigation > a.nav-disabled { - pointer-events: none; - cursor: default; - color: #999; -} - -.nav-selected { - border: solid 1px #999; - border-radius: 2px; -} - -.navigation { - margin: 8px; -} - -#results { - flex-grow: 1; - margin: 8px; -} - -#header { - margin: 8px; - flex-grow: 0; -} diff --git a/inst/rstudio/shinyaddin/www/index.html b/inst/rstudio/shinyaddin/www/index.html deleted file mode 100644 index 49291915a..000000000 --- a/inst/rstudio/shinyaddin/www/index.html +++ /dev/null @@ -1,200 +0,0 @@ - - -
- - - - - - - - -- Search: - - | -- Board: - - | -