Skip to content

Commit

Permalink
remove manual check of existing space names when creating new space
Browse files Browse the repository at this point in the history
  • Loading branch information
rpodcast committed Oct 12, 2017
1 parent 35ff528 commit cea751a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions R/spaces.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@ space_create <- function(name, spaces_key = NULL, spaces_secret = NULL, ...) {
spaces_key <- check_space_access(spaces_key)
spaces_secret <- check_space_secret(spaces_secret)

# check if space name already exists in user's account
spaces_existing <- spaces()
if (name %in% names(spaces_existing)) stop(sprintf("A space named %s already exists in your account. Please use a different name.", name), call. = FALSE)

res <- put_bucket(name,
region = NULL,
key = spaces_key,
Expand Down

0 comments on commit cea751a

Please sign in to comment.