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

Move aws.s3 to Suggests due to it being orphaned #189

Merged
merged 1 commit into from
Jan 15, 2020
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
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Imports:
httr (>= 1.2.0),
jsonlite (>= 1.1),
magrittr,
yaml,
aws.s3
yaml
Suggests:
roxygen2 (>= 7.0.2),
testthat,
knitr,
ssh (>= 0.6)
ssh (>= 0.6),
aws.s3
RoxygenNote: 7.0.2
2 changes: 2 additions & 0 deletions R/space_create.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ space_create <- function(name,
spaces_key = NULL,
spaces_secret = NULL,
...) {
check_for_a_pkg("aws.s3")

spaces_region <- check_space_region(spaces_region)
spaces_key <- check_space_access(spaces_key)
spaces_secret <- check_space_secret(spaces_secret)
Expand Down
6 changes: 5 additions & 1 deletion R/spaces.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ spaces_base <- "digitaloceanspaces.com"
#' DigitalOcean provides support for storing files (Objects) in Spaces. This is
#' useful for storing related files for fast access, sharing, etc. See
#' https://developers.digitalocean.com/documentation/spaces/
#' for more information.
#' for more information. The `aws.s3` package is required to use `analogsea`'s
#' Spaces functionality so be sure to install it with
#' `install.packages("aws.s3")` prior to continuing.
#'
#' In order to get started using the Spaces API, you'll need to generate a new
#' "Spaces access key" in the API section of your DigitalOcean control panel and
Expand Down Expand Up @@ -86,6 +88,8 @@ check_space_secret <- function(spaces_secret) {
spaces <- function(spaces_region = NULL,
spaces_key = NULL,
spaces_secret = NULL, ...) {
check_for_a_pkg("aws.s3")

res <- spaces_GET(spaces_region = spaces_region,
spaces_key = spaces_key,
spaces_secret = spaces_secret,
Expand Down
4 changes: 3 additions & 1 deletion man/spaces_info.Rd

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