Skip to content

GottfriedHofmann/coche

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 

Repository files navigation

Coche - The Offline Cache for Ohloh.net data

Coche is a set of scripts written in R to access project data from ohloh.net through ohloh's public REST API and store it in a PostgreSQL database. The output XML files can optionally be stored locally as well. Currently it is designed to parse ranges of data (for example projects with id 1 to 100). Selecting individual projects is possible by setting the range to just the projects of interest.

Requirements

Coche has been tested with R version 3.0.x.

The provided R-functions require the packages XML and RPostgreSQL.

You can install the required packages in an R-shell with

    install.packages(c("XML", "RPostgreSQL2"), dependencies=T)

To run coche, an API key from ohloh is required.

Configuration

Configuration is stored in config.R. Set your API key, database credentials and global options there.

Coche uses it's own concept of working directories that is independent from where the script is executed. Before you can use any of the parsing functions set up the wd() function you can find at the top of the script parseOhlohData.R.

Usage

The example script parseOhlohData.R should provide you with all information you need. Since coche is setting up a schema with foreign keys, you either need to parse project info before anything else or remove the foreign key restrictions from setupDb.R.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages