Investment management toolkit for R