Search code examples
rswirl

Installing packages in R


I installed swirl package in R studio console and I started learning R programming. After completing a chapter I closed R studio. I didn't save the workspace while quitting the R studio.

After a day I started R-Studio again and ran swirl() command in the console. The R-Studio gave this error - "Error: could not find function "swirl""

Do I need to install the package everytime in R studio? Doesnt it store in R ? Pls help.


Solution

  • you should first type the command library (swirl). That will load the library in the namespace and allow you to use its functions.