This document provides an overview of environments and functions in R. It discusses the different types of environments like the global environment, base environment and current environment. It also covers function environments like the enclosing environment, binding environment and execution environment. The document also describes how functions are composed of arguments, body and environment, and how lexical scoping is used to lookup values. It explains function evaluation and return values.