EraCode practice

Config Snapshot: Read an Env Var with a Safe Default

RadvancedMulti-Part

Summary

Practice a small but nuanced environment/config pattern in R: reliably reading a configuration value from an environment variable while providing a deterministic default.

Problem preview

### Goal Complete so it returns the value of an environment variable **unless** it is **unset or empty**, in which case it returns . ### Constraints - Exactly one gap to fill. - Use base R (no packag…

Attempt this challenge

Sign in to attempt the full challenge with timed AI grading, hints, and test feedback.

Config Snapshot: Read an Env Var with a Safe Default | R practice | EraCode