ABSTRACT

This chapter briefly mentions some more advanced aspects of programming in R. We introduce the management of and interaction with packages. We present details about how R arranges the objects that are created within the workspace, and within functions that we are running (frames and environments). We provide further suggestions for debugging your own functions, and we present some of the infrastructure that R provides for object-oriented programming. Finally we demonstrate how to include in R, code that has been compiled using another computer language, for example, C.