Skip to content

Commit

Permalink
addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillseva committed Feb 25, 2015
1 parent b8505f6 commit bb9aff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: syberiaStages
Type: Package
Title: Syberia Stages
Version: 0.3.0
Version: 0.2.2
Description: Syberia provides an opinionated unified framework for
fast iteration on classifier development and deployment. It is
founded on convention over configuration and aims to solve the
Expand Down
6 changes: 2 additions & 4 deletions R/adapter.r
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,8 @@ construct_s3data_adapter <- function() {
write_function <- function(object, opts) {
common_s3mpi_package_loader()

obj <- list(data = switch(1 + is.element("data", names(object$output$options)),
NULL, object$output$options$data),
label = switch(1 + is.element("label", names(object$output$options)),
NULL, object$output$options$label))
obj <- list(data = ifelse(is.element("data", names(try(silent = TRUE, object$output$options))), object$output$options$data, NULL),
label = ifelse(is.element("label", names(try(silent = TRUE, object$output$options))), object$output$options$label, NULL))

# If the user provided an s3 path, like "s3://somebucket/some/path/",
# pass it along to the s3read function.
Expand Down

0 comments on commit bb9aff9

Please sign in to comment.