Fig. Example: some return vs. benchmark return
There is at least one R package already available - PerformanceAnalytics - which provides both Sharpe Ratio and Information Ratio,
Hence I've written my own simple implementation of these functions.
You can use these ratios together with drawdown calculations as a basic risk management tools.