Merge lp:~jml/txpkgme/r-support into lp:txpkgme

Proposed by Jonathan Lange
Status: Merged
Approved by: James Westby
Approved revision: 46
Merged at revision: 46
Proposed branch: lp:~jml/txpkgme/r-support
Merge into: lp:txpkgme
Diff against target: 27 lines (+22/-0)
1 file modified
doc/backend-breakdown.R (+22/-0)
To merge this branch: bzr merge lp:~jml/txpkgme/r-support
Reviewer Review Type Date Requested Status
James Westby (community) Approve
Review via email: mp+129431@code.launchpad.net

Commit message

Add R script

Description of the change

This has been sitting on my desktop for a while. It's useful as a reference,
but not actually sophisticated enough to be turned into an executable.

Thus, adding it as documentation to the branch, since this is an incremental
improvement on "file on my desktop".

To post a comment you must log in.
Revision history for this message
James Westby (james-w) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'doc'
2=== added file 'doc/backend-breakdown.R'
3--- doc/backend-breakdown.R 1970-01-01 00:00:00 +0000
4+++ doc/backend-breakdown.R 2012-10-12 13:26:34 +0000
5@@ -0,0 +1,22 @@
6+# This is provided as an example of what you might do with the output
7+# generated by lp:txpkgme.
8+
9+library(ggplot2)
10+# Generated with lp:txpkgme
11+#
12+# $ ./bin/py ./bin/parse-subunit-output --format csv /PATH/TO/SCOREBOARD/OUTPUT
13+#
14+# Scoreboard output is obtained by running retry-all-apps on emim.
15+scoreboard <- read.csv("~/Desktop/scoreboard-2012-09-27.csv")
16+commercial <- scoreboard[which(scoreboard$error != "UNPACKAGEABLE" & scoreboard$state == 'Published' & scoreboard$queue == "commercial"),]
17+qplot(commercial$backend, fill=commercial$error, xlab="Backend") +
18+ scale_fill_discrete(
19+ name="Outcome",
20+ breaks=c("", "MISSING-DEP", "MULTI-ARCH", "NO-BACKEND", "NOT-IMPLEMENTED-YET", "TIMEOUT", "OTHER"),
21+ labels=c(
22+ "Success",
23+ "Missing dependency",
24+ "i386 and amd64", "No backend",
25+ "Not implemented yet",
26+ "Timeout",
27+ "Other"))

Subscribers

People subscribed via source and target branches