Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
gluc committed Sep 7, 2015
2 parents af6d447 + 48b9067 commit af0bdfc
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 36 deletions.
7 changes: 0 additions & 7 deletions CONVENTIONS

This file was deleted.

10 changes: 6 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: data.tree
Type: Package
Title: General Purpose Hierarchical Data Structure
Version: 0.1.9
Date: 2015-08-01
Version: 0.2.0-2
Date: 2015-09-07
Author: Christoph Glur
Maintainer: Christoph Glur <christoph.glur@ipub.com>
VignetteBuilder: knitr
Expand All @@ -11,15 +11,17 @@ Imports:
Suggests:
testthat,
knitr,
devtools,
ape,
networkD3,
yaml,
jsonlite,
DiagrammeR,
igraph,
treemap,
curl
curl,
doParallel,
foreach,
htmlwidgets
Enhances:
Description: Create tree structures from hierarchical data, and use the utility
methods to traverse the tree in various orders. Aggregate, cumulate, print, convert to and from data.frame,
Expand Down
2 changes: 1 addition & 1 deletion R/node_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ print.Node <- function(x, ..., pruneMethod = c("simple", "dist", NULL), limit =
}
} else if(!x$isRoot) {
#clone s.t. x is root (for pretty level names)
x <- Clone(x, pruneFun = pruneFun, attributes = TRUE)
x <- Clone(x, attributes = TRUE)
x$parent <- NULL
}

Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ The package provides functionality to convert from and to various formats such a

# NOTE:
The latest from github has some breaking changes compared to CRAN. See [NEWS](https://github.com/gluc/data.tree/blob/master/NEWS) for details.


# Conventions:

Coding Conventions: Google Style Guide, see https://google-styleguide.googlecode.com/svn/trunk/Rguide.xml

Versioning Conventions: SemanticVersioning. See http://semver.org/ for details

Branching Conventions: GitFlow. See https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow

Pull Requests: Very welcome. Please branch from the dev branch if possible.
1 change: 0 additions & 1 deletion data.tree.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ RnwWeave: knitr
LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageBuildArgs: --resave-data
PackageBuildBinaryArgs: --resave-data
Expand Down
13 changes: 7 additions & 6 deletions vignettes/applications.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ Here, it was particularly simple, because the underlying JSON structure is regul
What follows has nothing to do with data.tree anymore. We simply provide the bubble chart printing for your enjoyment. In order to run it yourself, you need to install the bubbles package from github:


```{r}
```{r, eval = FALSE}
devtools::install_github("jcheng5/bubbles@6724e43f5e")
library(scales)
Expand All @@ -787,6 +787,8 @@ bubbles(
)
```

![bubbles](assets/bubbles.jpg)


# File Explorer (System Utilities, visualisation)

Expand Down Expand Up @@ -829,8 +831,7 @@ print(fileStructure, "mode", "size", limit = 25)

Finally, we can display the files by timelyportfolio's listviewer. As it's not on CRAN, we only display a screenshot of the widget in in this vignette. This is not half as fun as the interactive widget, of course. So please try it out for yourself to see it in action.

```{r}
```{r, eval = FALSE}
#This requires listviewer, which is available only on github
devtools::install_github("timelyportfolio/listviewer")
Expand All @@ -842,7 +843,9 @@ jsonedit(l)
```

![listviewer](assets/listviewer.jpg)

(Run the code yourself to see the widget in action)

# Gene Defect (genetics, probabilities, multi-generation models)

Expand Down Expand Up @@ -993,12 +996,10 @@ It is straight forward to parallelise the simulation. If, as in this example, yo
```{r}
library(foreach)
library(doParallel)
registerDoParallel(makeCluster(3))
registerDoParallel(makeCluster(2))
#On Linux, there are other alternatives, e.g.: library(doMC); registerDoMC(3)
system.time(x <- foreach (i = 1:100, .packages = "data.tree") %dopar% FreqLastGen(GenerateChildrenTree()))
x <- as.numeric(x)
stopImplicitCluster()
```

Expand Down
17 changes: 0 additions & 17 deletions vignettes/assets/bubbles.html

This file was deleted.

Binary file added vignettes/assets/bubbles.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed vignettes/assets/bubbles.png
Binary file not shown.
Binary file added vignettes/assets/listviewer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed vignettes/assets/listviewer.png
Binary file not shown.

0 comments on commit af0bdfc

Please sign in to comment.