in R Language by (6.5k points)
What is the difference between library() and require() functions in R language?

1 Answer

0 votes
by (32.2k points)
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 (6.5k points)
+2 votes
asked Jul 28, 2019 in R Language by Aarav2017 (359 points)
0 votes
asked Feb 24, 2020 in R Language by rahuljain1 (6.5k points)
...