R Packages Selection in user library

I have to select the packages individually in user library window every time when I start to use R. Have any one option to select all built in packages in one click.

Thank you


Welcome to the community!

To be honest, I've no idea why do you need to load all the in built packages every time you use R. But anyway, you can do something like this:

ip <- installed.packages(priority = c("base", "recommended"))[, "Package"]
sapply(X = ip, FUN = require, character.only = TRUE)

You can also use "high" in place of c("base", "recommended"). They are equivalent.

Hope this helps.

Thank you Yarnabrina!

But still I am getting error in many functions. I wish, we have some commands through which all inbuilt packages in r could be functioned.


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.