7.2 Internal data

R objects for functions’ internal use, not accessible to the user

Small, simple objects:

  • define with c() or data.frame() in R/ code, e.g. R/data.R.

Larger objects:

  • store in R/sysdata.rda –> automatically lazy-loaded on demand.

Example use case: large tables of color data (munsell and dichromat)