Running examples in 'datadr-Ex.R' failed
The error most likely occurred in:

> ### Name: addTransform
> ### Title: Add a Transformation Function to a Distributed Data Object
> ### Aliases: addTransform
> 
> ### ** Examples
> 
> # Create a distributed data frame using the iris data set, backed by the
> # kvMemory (in memory) connection
> bySpecies <- divide(iris, by = "Species")
> bySpecies

Distributed data frame backed by 'kvMemory' connection

 attribute      | value
----------------+----------------------------------------------------------------
 names          | Sepal.Length(num), Sepal.Width(num), Petal.Length(num), and 1 more
 nrow           | 150
 size (stored)  | 11.48 KB
 size (object)  | 11.48 KB
 # subsets      | 3

* Other attributes: getKeys()
* Missing attributes: splitSizeDistn, splitRowDistn, summary
* Conditioning variables: Species

> # Note a tranformation is not present in the attributes
> names(attributes(bySpecies))
[1] "class" "ddo"   "ddf"  
> ## A transform that operates only on values of the key-value pairs
> ##----------------------------------------------------------------
> # Create a function that will calculate the mean of each variable in
> # in a subset. The calls to 'as.data.frame()' and 't()' convert the
> # vector output of 'apply()' into a data.frame with a single row
> colMean <- function(x) as.data.frame(t(apply(x, 2, mean)))
> # Test on a subset
> colMean(bySpecies[[1]][[2]])
  Sepal.Length Sepal.Width Petal.Length Petal.Width
1        5.006       3.428        1.462       0.246
> # Add a tranformation that will calculate the mean of each variable
> bySpeciesTransformed <- addTransform(bySpecies, colMean)
*** finding global variables used in 'fn'... [none]
*** testing 'fn' on a subset... ok
> # Note how 'before transformation' appears to describe the values of
> # several of the attributes
> bySpeciesTransformed

Transformed distributed data frame backed by 'ddf' connection

 attribute      | value
----------------+----------------------------------------------------------------
 names          | Sepal.Length(num), Sepal.Width(num), Petal.Length(num), and 1 more
 nrow           | 150 (before transformation)
 size (stored)  | 11.48 KB (before transformation)
 size (object)  | 11.48 KB (before transformation)
 # subsets      | 3

* Other attributes: getKeys()
* Conditioning variables: Species

> # Note the addition of the transformation to the attributes
> names(attributes(bySpeciesTransformed))
[1] "class"      "ddo"        "ddf"        "transforms"
> # We can see the result of the transformation by looking at one of
> # the subsets:
> bySpeciesTransformed[[1]]
$key
[1] "Species=setosa"

$value
  Sepal.Length Sepal.Width Petal.Length Petal.Width
1        5.006       3.428        1.462       0.246
> # The transformation is automatically applied when calling any data
> # operation.  For example, if can call 'recombine()' with 'combRbind'
> # we will get a data frame of the column means for each subset:
> varMeans <- recombine(bySpeciesTransformed, combine = combRbind)
* Applying recombination...
Error in parse(text = deparse(e)) : <text>:8:3: unexpected ','
7:     collect(reduce.key, data.frame(adata))
8: }),
     ^
Calls: recombine -> mrExec -> nullAttributes -> eval -> parse
Execution halted