README.md

rethinkpriorities R package

This is the rethinkpriorities R package. The goal of this package is to collect R functions that are likely to be re-used across projects from Rethink Priorities. As such, this package is for internal use only.

This repo also includes functions the rethinkpriorities::book style; see hosted example and 'how-to'

Installation

Currently there are no plans to submit this package to CRAN, so the package can be installed from this GitHub repository, using the following code:

devtools::install_github("rethinkpriorities/rp-r-package")

After installing the package, you can load the package using library(rethinkpriorities).

Note that the name of the R package is different from the name of the GitHub repository.

Tips on adding functions to this package (and adjusting the style)

illustration of how to add a function here (video)

Tweaking and viewing the RPR style css in Chrome, adjusting it in the RP package (video)

Notes on the functions added

DR: I went through my functions.R file and added nearly all the functions actually used in EA Survey work (plus a very few more that I thought were worth highlighting).

Note that some of these functions/R files...:

Other relevant packages/repos

DR:



rethinkpriorities/rp-r-package documentation built on Jan. 7, 2023, 10:11 p.m.