Tree-dependent component analysis in R