Skip to content

Commit d1ecd6c

Browse files
authored
Merge pull request #190 from rstudio/aron-remove-experimental-bundle-use
remove experimental bundle use
2 parents c45117d + 3a8f974 commit d1ecd6c

File tree

8 files changed

+32
-37
lines changed

8 files changed

+32
-37
lines changed

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# connectapi (development version)
22

3+
- BREAKING: The functions `Connect$download_bundle()` and
4+
`Connect$bundle_delete()` have been removed. Use `Content$bundle_download()`
5+
and `Content$bundle_delete()` instead.
6+
37
# connectapi 0.1.3.1
48

59
- Fix generated documentation HTML for CRAN submission

R/connect.R

-13
Original file line numberDiff line numberDiff line change
@@ -393,19 +393,6 @@ Connect <- R6::R6Class(
393393
)
394394
},
395395

396-
download_bundle = function(bundle_id, to_path = tempfile(), overwrite=FALSE) {
397-
lifecycle::deprecate_soft("0.1.1", "Connect$downlod_bundle()", "Content$bundle_download()")
398-
path <- glue::glue("v1/experimental/bundles/{bundle_id}/download")
399-
self$GET(path, httr::write_disk(to_path, overwrite = overwrite), "raw")
400-
to_path
401-
},
402-
403-
bundle_delete = function(bundle_id) {
404-
lifecycle::deprecate_soft("0.1.1", "Connect$bundle_delete()", "Content$bundle_delete()")
405-
path <- glue::glue("v1/experimental/bundles/{bundle_id}")
406-
self$DELETE(path)
407-
},
408-
409396
content_upload = function(bundle_path, guid) {
410397
# todo : add X-Content-Checksum
411398
path <- glue::glue("v1/content/{guid}/bundles")

R/deploy.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Vanity <- R6::R6Class(
166166
#' @export
167167
#' @examplesIf identical(Sys.getenv("IN_PKGDOWN"), "true")
168168
#'
169-
#' bundle_dir(system.file("tests/testthat/examples/shiny/", package = "connectapi))
169+
#' bundle_dir(system.file("tests/testthat/examples/shiny/", package = "connectapi"))
170170
bundle_dir <- function(path = ".", filename = fs::file_temp(pattern = "bundle", ext = ".tar.gz")) {
171171

172172
# TODO: check for manifest.json
@@ -215,7 +215,7 @@ check_bundle_contents <- function(dir) {
215215
#'
216216
#' @examplesIf identical(Sys.getenv("IN_PKGDOWN"), "true")
217217
#'
218-
#' bundle_static(system.file("logo.png", package = "connectapi))
218+
#' bundle_static(system.file("logo.png", package = "connectapi"))
219219
#'
220220
#' @export
221221
bundle_static <- function(path, filename = fs::file_temp(pattern = "bundle", ext = ".tar.gz")) {
@@ -239,7 +239,7 @@ bundle_static <- function(path, filename = fs::file_temp(pattern = "bundle", ext
239239
#' @export
240240
#' @examplesIf identical(Sys.getenv("IN_PKGDOWN"), "true")
241241
#'
242-
#' bundle_path(system.file("tests/testthat/examples/static.tar.gz", package = "connectapi))
242+
#' bundle_path(system.file("tests/testthat/examples/static.tar.gz", package = "connectapi"))
243243
bundle_path <- function(path) {
244244
# TODO: need a check on filetype
245245
# TODO: a way to check that the .tar.gz has a manifest.json?
@@ -327,7 +327,7 @@ download_bundle <- function(content, filename = fs::file_temp(pattern = "bundle"
327327
#' @examplesIf identical(Sys.getenv("IN_PKGDOWN"), "true")
328328
#'
329329
#' client <- connect(prefix = "TEST_1")
330-
#' bnd <- bundle_path(system.file("tests/testthat/examples/static.tar.gz", package = "connectapi))
330+
#' bnd <- bundle_path(system.file("tests/testthat/examples/static.tar.gz", package = "connectapi"))
331331
#' deploy(client, bnd)
332332
#'
333333
deploy <- function(connect, bundle, name = create_random_name(), title = name, guid = NULL, ..., .pre_deploy = {}) {

man/PositConnect.Rd

-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/bundle_dir.Rd

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/bundle_path.Rd

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/bundle_static.Rd

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/deploy.Rd

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)