+1 480 409 0818 
Table Of Contents
  • Functional programming in R
  • Semantics of R
  • Exception handling routine
  • Debugging tools

Functional programming in R

R is a functional programming language (FPL), meaning, it comes with a host of tools and features for creating and manipulating functions. Particularly, R has what is commonly referred to as first-class functions. One can do anything with these functions including assigning them to variables, passing them to other functions as arguments, storing them as lists, and even creating them inside other functions.

Semantics of R

R syntax has a close similarity with C. The semantics, however, are of functional programming language, with stronger affinities with APL and Lisp. Specifically, R enables users to perform statistical computations, which in turn enables the writing of functions that take various expressions as input. This is an important attribute especially when it comes to statical modeling and graphics.

Exception handling routine

In R, an exception handling routine is an algorithm used to respond to the occurrence of exceptions when a program is executing. Exceptions refer to any anomalous conditions requiring special processing. Exception handling can be performed using various functions like try, withCallingHandlers, try-catch, and more. Often, the function warning () is used to show the user what is happening, and stop () is used to stop the execution.

Debugging tools

Debugging tools in R allows users to execute a function line by line, print variable values, and display results in a graph within the function. Some of the most common debugging tools in the R statistical computing environment include debug (), traceback (), trace (), recover (), and browser (). The objective of these tools is to help the user identify unforeseen problems faster and more efficiently.