Showing posts with label CRAN. Show all posts
Showing posts with label CRAN. Show all posts
Managing R package dependencies
One of my take aways from last week's EARL conference was that R is more and more growing out of its academic roots into the enterprise. And with that come some challenges, e.g. how do I ensure consistent and systematic access to a set of R packages in an organisation, in particular when one team is providing packages to others?
Two packages can help here: roxyPackage and miniCRAN.
I wrote about roxyPackage earlier on this blog. It allows me to create a local repository to distribute my package, while at the same time execute and control the build process from within R. But what about my package's dependencies? Here miniCRAN helps. miniCRAN is a new package by Andrie de Vries that enables me to find and download all package dependencies and store them in a local repository, e.g. the one used by roxyPackage.
For more details about roxyPackage and miniCRAN read the respective package vignettes.
What a surprise! In total I end up with 42 packages from CRAN and I didn't expect any connection between the ChainLadder and googleVis package.
Two packages can help here: roxyPackage and miniCRAN.
I wrote about roxyPackage earlier on this blog. It allows me to create a local repository to distribute my package, while at the same time execute and control the build process from within R. But what about my package's dependencies? Here miniCRAN helps. miniCRAN is a new package by Andrie de Vries that enables me to find and download all package dependencies and store them in a local repository, e.g. the one used by roxyPackage.
For more details about roxyPackage and miniCRAN read the respective package vignettes.
Example
To create a local sub-CRAN repository for the two packages I maintain on CRAN and with all their dependencies I use:library("miniCRAN")
my.pkgs <- c("googleVis", "ChainLadder")
pkgs <- pkgDep(my.pkgs, suggests = TRUE, enhances=FALSE)
makeRepo(pkgs = pkgs, path="/Users/Shared/myCRANRepos")And to visualise the dependencies:dg <- makeDepGraph(my.pkgs, includeBasePkgs=FALSE,
suggests=TRUE, enhances=TRUE)
set.seed(1)
plot(dg, legendPosEdge = c(-1, 1),
legendPosVertex = c(1, 1), vertex.size=20)What a surprise! In total I end up with 42 packages from CRAN and I didn't expect any connection between the ChainLadder and googleVis package.
Bonus tip
Don't miss out on Pat Burns's insightful talk about effective risk management from EARL. His thoughts reminded me of the great Karl Popper: Good tests kill flawed theories; we remain alive to guess again.Session Info
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] miniCRAN_0.1-0
loaded via a namespace (and not attached):
[1] httr_0.5 igraph_0.7.1 stringr_0.6.2 tools_3.1.1
[5] XML_3.98-1.1
23 Sept 2014
07:47
CRAN
,
End User Computing
,
EUC
,
R
,
roxyPackage
googleVis 0.4.2 with support for shiny released on CRAN
The new version of googleVis 0.4.2 is now available via CRAN. Many thanks to all who provided feedback on version 0.4.0 and particularly to Sebastian Campbell, John Maindonald and Aonan Zhang. As usual, if you find any issues or bugs, please send us an email or add a line to our online issues log.
With version 0.4.0 we introduced support for googleVis on shiny. See my previous post for more details and examples.
The CRAN release of googleVis 0.4.2 has some further improvements:
With version 0.4.0 we introduced support for googleVis on shiny. See my previous post for more details and examples.
The CRAN release of googleVis 0.4.2 has some further improvements:
- New shiny and FAQ sections in package vignette
- Core charts (e.g. line, area, scatter, bar, column and combo charts) accept now also date variables for the x-axis
- Typos in the Stock and Andrew data sets have been fixed
- The WorldBank demo uses now the WDI package to download data from the World Bank, see the R code below
googleVis 0.3.3 is released and on its way to CRAN
I am very grateful to all who provided feedback over the last two weeks and tested the previous versions 0.3.1 and 0.3.2, which were not released on CRAN.
Not much, but
As usual, you can download the most recent version from our project site. It will take a few days before version 0.3.3 will be available on CRAN for all operating systems.
So, what changed since version 0.3.2?
Not much, but
plot.gvis didn't open a browser window when options(gvis.plot.tag) were not set to NULL, but the user explicitly called plot.gvis with tag NULL. Thanks to Sebastian Kranz for reporting this bug. Additionally the vignette has been updated and includes an extended section on knitr. As usual, you can download the most recent version from our project site. It will take a few days before version 0.3.3 will be available on CRAN for all operating systems.
googleVis 0.2.15 is released: Improved geo and bubble charts
The guys behind the Google Visualisation API don't seem to rest. On 22 February 2012 they released an update of their API. Google added options for a gradient colour axis to bubble chart and a magnifying glass to geo chart, which opens when the user hovers over cluttered markers (excluding IE<=8). Those updates have been incorporated into version 0.2.15 of the googleVis package for R.
Examples of new features
Here are two examples demonstrating the new features.
Bubble chart with gradient colour mode
Example of a bubble chart with a colour gradient axis.
4 Mar 2012
19:08
CRAN
,
googleVis
,
gvisBubbleChart
,
gvisGeoChart
,
R
