+1 vote
in R Language by
What is the difference between library() and require() functions in R language?

1 Answer

0 votes
by
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.
...