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