Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.
/ pacta_DEPRECATED Public archive

R package to perform Paris Agreement Capital Transition Assessment for corporate lending portfolio including matching and analysis module

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

RMI-PACTA/pacta_DEPRECATED

Repository files navigation

pacta

Build Status codecov

R package to perform Paris Agreement Capital Transition Assessment for corporate lending portfolio including matching and analysis module

Purpose

Package includes useful functions and procedures which can be used by any user. Purpose of package is to implement support for standard workflow operartions. Users may use own workflows (different data formats, different match rules, etc) while still using standard building blocks.

All package makes available set of functions which are pure in their behaviour - so they fully depend on input and produce output only according to input. No IO operations are done inside functions. All file access for reads and writes are performed script level and not part of this package.

Simple package installation

Install R first from cran. Please install R into local folder. Due to many files R works slowly when it is installed on network drive.

Enter R envinronment, install additional packages

install.packages("devtools")
devtools::install_github(repo = "2DegreesInvesting/pacta")

Installation of sources

Please note that devtools and roxygen2 packages is required. This is easiest way to build packages in R. Please open R session and run following command

install.packages(c("devtools", "roxygen2"))

After that you can clone git repository into your working folder

git clone https://github.com/2DegreesInvesting/pacta.git

Now everything is ready, you can run RStudio and open project - there is a Rproj file in the root folder.

./pacta.Rproj

After project is open it needs to be built. Run [Cmd/Ctrl]+[Shift]+B to build project. R might request you to install additional packages used, please refer to Imports: section of package DESCRIPTION.

Making changes

Please refer to CONTRIBUTING document that describes workflow used for changes. Few important rules worth mentioning again:

  • all changes are done via branches, no changes in master please;
  • first write test then write functionality - take care of automated testing;
  • always biuld - [Cmd/Ctrl]+[Shift]+B - for documentation update;
  • always test - [Cmd/Ctrl]+[Shift]+T - to make sure regression tests are passing;
  • always check - [Cmd/Ctrl]+[Shift]+E - to make sure package passes integration tests and additional checks.

Please keep Warnings and Errors on zero level.

Documentation

Please activate documentation generation during builds - go to Rstudio menu Tools -> Project options... -> Build Tools -> activate flag Generate documentation with Roxygen, theck click on Configure button and mark Automatically roxygenize when running / Build & Reload

About

R package to perform Paris Agreement Capital Transition Assessment for corporate lending portfolio including matching and analysis module

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •