Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces cran fixes #161

Merged
merged 2 commits into from
Jun 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,10 @@ export(sizes)
export(snapshot)
export(snapshot_delete)
export(snapshots)
export(space_create)
export(spaces)
export(spaces_acl_get)
export(spaces_acl_put)
export(spaces_object_copy)
export(spaces_object_delete)
export(spaces_object_get)
export(spaces_object_head)
export(spaces_object_put)
Expand Down
7 changes: 6 additions & 1 deletion R/spaces.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,15 @@ space_files <- function(space_info) {
}

#' Create a new space
#'
#' This function is not implemented yet. A working implementation is planned in
#' future releases of this package.
#'
#' @importFrom aws.s3 put_bucket
#' @export
#' @rdname spaces
space_create <- function(name, spaces_key = NULL, spaces_secret = NULL, ...) {
stop("This function is not implemented yet.", call. = FALSE)

if (is.null(name)) stop("Please specify the space name")
spaces_key <- check_space_access(spaces_key)
spaces_secret <- check_space_secret(spaces_secret)
Expand Down
1 change: 0 additions & 1 deletion R/spaces_object_copy.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ spaces_object_copy <- function(from_object,
secret = spaces_secret,
base_url = spaces_base,
...)

}
7 changes: 5 additions & 2 deletions R/spaces_object_delete.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#' Delete an Object from a Space
#'
#' This function is not implemented yet. A working implementation is planned in
#' future releases of this package.
#'
#' @param object (character) The Object to delete
#' @param space (character) The Space to delete the Object from
#' @template spaces_args
#' @param ... Additional argument passed to \code{\link[aws.s3]{delete_object}}
#'
#' @return \code{TRUE} if successful, otherwise an object of class aws_error
#' details if not.
#' @export
#'
#' @references \url{https://developers.digitalocean.com/documentation/
#' spaces/#delete-object}
Expand All @@ -26,6 +28,8 @@ spaces_object_delete <- function(object,
spaces_key = NULL,
spaces_secret = NULL,
...) {
stop("This function is not implemented yet.", call. = FALSE)

spaces_key <- check_space_access(spaces_key)
spaces_secret <- check_space_secret(spaces_secret)

Expand All @@ -36,5 +40,4 @@ spaces_object_delete <- function(object,
secret = spaces_secret,
base_url = spaces_base,
...)

}
1 change: 0 additions & 1 deletion R/spaces_object_put.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@ spaces_object_put <- function(file,
secret = spaces_secret,
base_url = spaces_base,
...)

}
3 changes: 2 additions & 1 deletion man/spaces.Rd

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

3 changes: 2 additions & 1 deletion man/spaces_object_delete.Rd

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