Introduction to Exception Handling

In this lesson, we will give a brief introduction to exception handling in R.

While executing a program many unexpected things can happen. The code might give errors or warnings. In most cases, we do not want this to hinder the flow of our program. So, what should you do when something goes wrong with your R code? In this chapter, we will be learning all the tools that will help us address this problem.

This chapter will teach us how to gracefully handle unanticipated problems. We will learn all the functions that can communicate problems and let us handle them. The term used for such a task is “Exception Handling”.

What is Exception Handling?

Exception handling involves first anticipating the error, detecting it, and then resolving it in the program.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy