Goal: get this into CRAN - so long Status: Submitted to CRAN waiting for inclusion/approval
clone from github, then:
R CMD INSTALL r-openspending
- RCurl
- rjson
If present parallel
will be used to paralellize aggregateTree.
require(ropenspending)
data=openspending.aggregate("medientransparenz-at",cut="time.year:2012",drilldown=c("medium","from"))
df=openspending.as.data.frame(data)
df[["amount"]]
For mor examples check the examples/ directory or ?openspending
Contributions are highly welcome. Documentation is autogenerated using
roxygen2
. Please have a look at the examples in R/r-openspending.R.
Before you issue a pull request do the following (the working directory is
the parent directory of the repository):
In R:
require("roxygen2")
roxygenize("r-openspending")
In your shell:
R CMD build r-openspending
cp ropenspending_VERSION.tar.gz /tmp
cd /tmp
tar -xvzf ropenspending_VERSION.tar.gz
R CMD check --as-cran ropenspending
Were VERSION is the developing version of r-openspending. Make sure no WARNINGs, NOTEs or ERRORs pop up. Only then can the package be submitted to CRAN.