

The bigger picture is that package installation time is starting to become more of an issue for a number of reasons. In the packages video in the free R Basics course you will see an example about how to download and activate a package in Rstudio.Every few weeks or so, a tweet pops up asking about how to speed up package installation in Rĭepending on the luck of twitter, the author may get a few suggestions. Usually I would go for the easiest way which in this case is the box ticking in the packages section. Like in nearly any application in R/Rstudio there are several ways how you can get your required result. This method can be seen as a click based library() command.

you click the needed package in R-Studio – this one is the safest way because you know that the package is available, you see if it is activated, you get a brief description and you also see the version of the package.If the package is not installed on your computer, it might be harder to identify the error source.

Although if you run longer and complicated scripts with nested functions, use the library function.

Recently I received a question from a student. She was confused about how to load a package in R.
