+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.

Related questions

0 votes
asked Feb 24, 2020 in R Language by rahuljain1
+2 votes
asked Jul 28, 2019 in R Language by Aarav2017
...