Question:

What is the difference between library() and require() functions in R language?

Answer:

There is no real difference between the two if the packages are not being loaded inside the function. require () function is usually used inside function and throws a warning whenever a particular package is not found. On the flip side, library () function gives an error message if the desired package cannot be loaded.


Keywords:

© 2017 QuizBucket.org