The goal of tiltRequirements is to help you install and use R packages from tilt. It provides basic documentation and software to prove the following:
- Your version of R is new enough to work with our packages.
- You can install from CRAN the dependencies that our packages import.
- You can access our packages from r-universe or GitHub.
- You understand our standard Installation instructions and Example.
- You can interact with our code from our standard interactive apps.
Installation
You can install the latest release from r-universe with:
install.packages("tiltRequirements", repos = c("https://2degreesinvesting.r-universe.dev", getOption("repos")))
Or the development version from GitHub with:
# install.packages("pak")
pak::pak("2DegreesInvesting/tiltRequirements")
If you install from GitHub you may need to prepare your system to build packages from source (if on Windows see “Install Rtools”).
Having trouble? Try it on a fresh new project on https://posit.cloud/ (free).
Example
library(tiltRequirements)
hello()
#> hello world
hello("tilt")
#> hello tilt
# Errors
hello("invalid")
#> Error in match.arg(who): 'arg' should be one of "world", "tilt"
You can also achieve the same with an interactive app online.